diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/simplaret | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/simplaret b/src/simplaret index 8bf18ca..189d467 100755 --- a/src/simplaret +++ b/src/simplaret @@ -507,6 +507,8 @@ function simplaret_get_jail_patches { VERSION="`default_version`" ARCH="`default_arch`" + simplaret_update + # in case there's something wrong with the jail, abort if [ -z "$VERSION" ] || [ -z "$ARCH" ]; then return @@ -603,7 +605,11 @@ function simplaret_install { package="`simplaret_get $1 --silent`" if [ "$?" == "0" ]; then - $root upgradepkg --install-new $package + if [ -f "$package" ]; then + $root upgradepkg --install-new $package + else + echo "error: could not install package $package: file not found" + fi else echo "error: could not install package $package" exit 1 |