~mdw
/
ircbot
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
irc-summon: Use UIDs to identify proper human users.
[ircbot]
/
on-vc.sh
diff --git
a/on-vc.sh
b/on-vc.sh
index
2761685
..
e560ed4
100755
(executable)
--- a/
on-vc.sh
+++ b/
on-vc.sh
@@
-9,14
+9,17
@@
set -e
set -e
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
fail () { echo 2>&1 "$0: $1"; exit 1; }
fail () { echo 2>&1 "$0: $1"; exit 1; }
-test $#
= 2 || fail "usage: $0 VC SCRIPT
"
+test $#
-ge 2 || fail "usage: $0 VC SCRIPT [ARGS]
"
vc="$1"
script="$2"
vc="$1"
script="$2"
+shift; shift
cd "$(dirname $0)"
test -L .tclshrc || fail "no .tclshrc symlink"
test -x "./$script" || fail "script not executable"
cd "$(dirname $0)"
test -L .tclshrc || fail "no .tclshrc symlink"
test -x "./$script" || fail "script not executable"
-openvt -f -c "$vc" -w -- screen ./"$script"
+openvt -f -c "$vc" -w -- screen ./"$script"
"$@"