From c3f0f55266cdf8d5e9e4e8688a9751a30087b7f1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 3 Aug 2002 14:37:18 +0000 Subject: [PATCH] retry --- on-vc.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/on-vc.sh b/on-vc.sh index e68d1a7..e560ed4 100755 --- a/on-vc.sh +++ b/on-vc.sh @@ -13,12 +13,13 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 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" +shift; shift 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" "$@" -- 2.11.0