aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/simplaret7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/simplaret b/src/simplaret
index 189d467..f0d3ae6 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -597,16 +597,13 @@ function simplaret_install {
local package root
- if [ ! -x "$ROOT" ]; then
- root="ROOT=/$ROOT"
- else root=""
- fi
+ root="/$ROOT"
package="`simplaret_get $1 --silent`"
if [ "$?" == "0" ]; then
if [ -f "$package" ]; then
- $root upgradepkg --install-new $package
+ ROOT=$root upgradepkg --install-new $package
else
echo "error: could not install package $package: file not found"
fi