Update of /cvsroot/srm/srm
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv5770
Modified Files:
test.sh
Log Message:
fix dangerous test to only run on my workstation
Index: test.sh
===================================================================
RCS file: /cvsroot/srm/srm/test.sh,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- test.sh 10 Jan 2014 05:58:11 -0000 1.13
+++ test.sh 10 Jan 2014 06:17:06 -0000 1.14
@@ -135,7 +135,7 @@
fi
# test return code if remove fails
-if [ $(whoami) != root ] ; then
+if [ $USER = doj -a $HOST = cubicle.cubic.org ] ; then
cp -f /etc/fstab "/tmp/$USER.fstab"
if $SRM -f /etc/fstab ; then
echo "removing /etc/fstab as user should not work"
|