From f690cecf05194930b988466fe194d412b376f2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 23 Oct 2010 23:46:48 +0200 Subject: [PATCH] Avoid passing negative integers to exit(1p) as it fails with dash shell. --- scripts/xfmountdev4 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/xfmountdev4 b/scripts/xfmountdev4 index 937db34..a904bc2 100644 --- a/scripts/xfmountdev4 +++ b/scripts/xfmountdev4 @@ -43,7 +43,7 @@ fi if [ "x$1" = "x" ]; then echo $0: You must provide a mount point - exit -1 + exit 1 else if [ -d "$1" ]; then MOUNTPNT="$1" @@ -62,7 +62,7 @@ else exit 0 else echo $0: The mount point $1 does not exist - exit -2 + exit 2 fi fi exit 0 -- 1.7.3.2