mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
purge-stale-projects.sh: Additional check if ssh works
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
b2a8292914
commit
e48700b459
1 changed files with 6 additions and 4 deletions
|
|
@ -47,12 +47,14 @@ ssh=ssh
|
|||
[ "$JANWARE_USER" ] || JANWARE_USER=`whoami`
|
||||
ssh=`which $ssh`
|
||||
|
||||
[ -x "$ssh" ] || {
|
||||
echo "SSH executable \"$ssh\" not found"
|
||||
exit 1
|
||||
}
|
||||
[ -x "$ssh" ] || fatal "SSH executable \"$ssh\" not found"
|
||||
|
||||
ssh="$ssh -l $JANWARE_USER"
|
||||
|
||||
for host in cvs.jannet.de git.jannet.de; do
|
||||
$ssh $host echo hallo >/dev/null 2>&1 || fatal "Can't ssh into host $host"
|
||||
done
|
||||
|
||||
local_cvs_proj=`ls -d */CVS 2>/dev/null | sed 's%/[^/]*%%'`
|
||||
local_git_proj=`ls -d */.git 2>/dev/null | sed 's%/[^/]*%%'`
|
||||
remote_cvs_proj=`$ssh cvs.jannet.de find /home/jannet/arc/cvs/proj -maxdepth 1 -mindepth 1 -type d -executable -readable | sed 's%.*/%%'`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue