diff options
Diffstat (limited to 'del-shell')
-rwxr-xr-x | del-shell | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |