aboutsummaryrefslogtreecommitdiffstats
path: root/del-shell
diff options
context:
space:
mode:
Diffstat (limited to 'del-shell')
-rwxr-xr-xdel-shell6
1 files changed, 3 insertions, 3 deletions
diff --git a/del-shell b/del-shell
index baeee15..e485697 100755
--- a/del-shell
+++ b/del-shell
@@ -1,6 +1,6 @@
#!/bin/sh
#---------------------------------------------------------------
-# Project : Mandriva Linux
+# Project : Mageia Linux
# Module : rpm-helper
# File : del-shell
# Version : $Id$
@@ -23,12 +23,12 @@ CFG_FILE=/etc/shells
# Create $CFG_FILE if needed
if [ ! -f $CFG_FILE ]; then
- > $CFG_FILE
+ true > $CFG_FILE
exit 0
fi
if [ "$num" = 0 ]; then
- if [ ! -x $shl ]; then
+ if [ ! -x "$shl" ]; then
grep -v "^$shl$" < $CFG_FILE > $CFG_FILE.new
mv -f $CFG_FILE.new $CFG_FILE
fi