diff options
-rwxr-xr-x | del-shell | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |