mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
purge-stale-projects.sh: Add safeguard against non-functional SSH executable
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
4e85d22e5a
commit
9fd198bca2
1 changed files with 7 additions and 0 deletions
|
|
@ -45,6 +45,13 @@ ssh=ssh
|
|||
[ "$CVS_RSH" ] && ssh="$CVS_RSH"
|
||||
[ "$GIT_SSH" ] && ssh="$GIT_SSH"
|
||||
[ "$JANWARE_USER" ] || JANWARE_USER=`whoami`
|
||||
ssh=`which $ssh`
|
||||
|
||||
[ -x "$ssh" ] || {
|
||||
echo "SSH executable \"$ssh\" not found"
|
||||
exit 1
|
||||
}
|
||||
|
||||
ssh="$ssh -l $JANWARE_USER"
|
||||
local_cvs_proj=`ls -d */CVS 2>/dev/null | sed 's%/[^/]*%%'`
|
||||
local_git_proj=`ls -d */.git 2>/dev/null | sed 's%/[^/]*%%'`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue