diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-10 16:59:46 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-10 16:59:46 +0000 |
commit | 99aaee85c645c498a80c811b7e36b53d9f481022 (patch) | |
tree | b520b1447f4bc617436af9a4d16a42676178ea8a /src | |
parent | 246a539d7c3987cfaca3739b94dfb4a6f3dbe6ab (diff) | |
download | simplepkg-99aaee85c645c498a80c811b7e36b53d9f481022.tar.gz simplepkg-99aaee85c645c498a80c811b7e36b53d9f481022.tar.bz2 |
simplaret small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@87 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-x | src/simplaret | 7 |
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 |