aboutsummaryrefslogtreecommitdiffstats
path: root/del-shell
diff options
context:
space:
mode:
Diffstat (limited to 'del-shell')
-rwxr-xr-xdel-shell4
1 files changed, 2 insertions, 2 deletions
diff --git a/del-shell b/del-shell
index 7c9163e..e485697 100755
--- a/del-shell
+++ b/del-shell
@@ -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