summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2000-10-11 16:13:14 +0000
committerHerb Lewis <herb@samba.org>2000-10-11 16:13:14 +0000
commit8af853ac00b38aa4cb75f6d81d7ed6fdbef170f3 (patch)
tree8157cf8184e0f5a5ed672afa5e5f3020bb14d181
parentaa4fb7de35934ab3687d60f393a6f2b6015603ac (diff)
downloadsamba-8af853ac00b38aa4cb75f6d81d7ed6fdbef170f3.tar.gz
samba-8af853ac00b38aa4cb75f6d81d7ed6fdbef170f3.tar.xz
samba-8af853ac00b38aa4cb75f6d81d7ed6fdbef170f3.zip
fix error in testing return code
-rwxr-xr-xpackaging/SGI/inetd.sh4
-rwxr-xr-xpackaging/SGI/startswat.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/packaging/SGI/inetd.sh b/packaging/SGI/inetd.sh
index 5d8b5243870..1d403978aec 100755
--- a/packaging/SGI/inetd.sh
+++ b/packaging/SGI/inetd.sh
@@ -10,7 +10,7 @@ chkconfig samba off
#
cp /etc/inetd.conf /etc/inetd.conf.O
-if [ $? ]; then exit 1; fi
+if [ $? -ne 0 ]; then exit 1; fi
if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi
sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/inetd.conf.O > /etc/inetd.conf
@@ -23,7 +23,7 @@ echo netbios-ns dgram udp wait root /usr/samba/bin/nmbd nmbd -S >> /etc
#
cp /etc/services /etc/services.O
-if [ $? ]; then exit 1; fi
+if [ $? -ne 0 ]; then exit 1; fi
if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi
sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/services.O > /etc/services
diff --git a/packaging/SGI/startswat.sh b/packaging/SGI/startswat.sh
index 73817512d3d..2a0333020fb 100755
--- a/packaging/SGI/startswat.sh
+++ b/packaging/SGI/startswat.sh
@@ -4,7 +4,7 @@
#
cp /etc/inetd.conf /etc/inetd.conf.O
-if [ $? ]; then exit 1; fi
+if [ $? -ne 0 ]; then exit 1; fi
if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi
sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.conf.O > /etc/inetd.conf
@@ -16,7 +16,7 @@ echo swat stream tcp nowait root /usr/samba/bin/swat swat >> /etc/inetd.con
#
cp /etc/services /etc/services.O
-if [ $? ]; then exit 1; fi
+if [ $? -ne 0 ]; then exit 1; fi
if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi
sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services