aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-10 16:59:46 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-10 16:59:46 +0000
commit99aaee85c645c498a80c811b7e36b53d9f481022 (patch)
treeb520b1447f4bc617436af9a4d16a42676178ea8a /src
parent246a539d7c3987cfaca3739b94dfb4a6f3dbe6ab (diff)
downloadsimplepkg-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-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