summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rvs.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/rvs.sh b/rvs.sh
index 9c3b7ac..2c56eec 100644
--- a/rvs.sh
+++ b/rvs.sh
@@ -83,18 +83,17 @@ case "$com" in
'install') shift; _install $@; exit $?;;
'uninstall') shift; _uninstall $@; exit $?;;
*) repo=`_repo`
- if exit $?; then
+ if [ "$?" = '0' ]; then
while read plugin; do
if [ -f "$RVSDIR/$plugin/$com" ]; then
done='yes'
export RVSDIR=$RVSDIR/$plugin
export REPO=$repo/$plugin
- echo $RVSDIR/$@
$RVSDIR/$@
exit $?
break
fi
- done < $repi/plugins
+ done < "$repo/plugins"
else
exit 1;
fi