From 3f3064c82238c486706471d300217d73dd0f125e Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Sun, 2 Jun 2013 15:13:09 -0700 Subject: - (tim) [regress/sftp-chroot.sh] skip if no sudo. ok dtucker --- regress/sftp-chroot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'regress/sftp-chroot.sh') diff --git a/regress/sftp-chroot.sh b/regress/sftp-chroot.sh index 98a364ebf..03b9bc6d7 100644 --- a/regress/sftp-chroot.sh +++ b/regress/sftp-chroot.sh @@ -8,7 +8,8 @@ FILENAME=testdata_${USER} PRIVDATA=${CHROOT}/${FILENAME} if [ -z "$SUDO" ]; then - fatal "need SUDO to create file in /var/run, test won't work without" + echo "skipped: need SUDO to create file in /var/run, test won't work without" + exit 0 fi $SUDO sh -c "echo mekmitastdigoat > $PRIVDATA" || \ -- cgit v1.2.3