diff options
author | Luke Shumaker <luke@HP-dv6246us-u910.(none)> | 2010-03-28 22:28:19 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:19 -0600 |
commit | c4ebb4d76b91c8e5e475c5b131306176fe909468 (patch) | |
tree | 36952c4abd05fb0dd8e5af06b9bd57fb0044f133 /rvs/wrapper/rvs.sh | |
parent | e439bab381b77d19dfa5b908c4a9c24ecb59d1f2 (diff) |
and installation works, now to work on uninstallation...
Diffstat (limited to 'rvs/wrapper/rvs.sh')
-rw-r--r-- | rvs/wrapper/rvs.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/rvs/wrapper/rvs.sh b/rvs/wrapper/rvs.sh index 85586ea..d8b1b40 100644 --- a/rvs/wrapper/rvs.sh +++ b/rvs/wrapper/rvs.sh @@ -67,7 +67,7 @@ _runcom() { else if [ -f "$BINDIR/$command" ]; then exec "$BINDIR/$command" $@ | tee "$TMPDIR/$command" - elif [ -d "$BINDIR/$command" ] + elif [ -d "$BINDIR/$command" ]; then for file in "$BINDIR/$command"/*; do id=$(echo $file | sed 's/^[0-9]*-//') exec "$file" $@ | tee "TMPDIR/$command/$id" @@ -105,16 +105,15 @@ _init() { ################################################################################ _install() { - file= ${1?"usage: $RVS install FILE COMMAND ID [PRIORITY]"} - command= ${2?"usage: $RVS install FILE COMMAND ID [PRIORITY]"} - id= ${3?"usage: $RVS install FILE COMMAND ID [PRIORITY]"} + file=${1?"usage: $RVS install FILE COMMAND ID [PRIORITY]"} + command=${2?"usage: $RVS install FILE COMMAND ID [PRIORITY]"} + id=${3?"usage: $RVS install FILE COMMAND ID [PRIORITY]"} priority=${4-"`_nextpriority "$command"`"} install -d "$BINDIR/$command" install "$file" "$BINDIR/$command/$priority-$id" } - _uninstall() { command=${1?"usage: $RVS uninstall COMMAND [ID]"} id=$2 |