diff options
-rw-r--r-- | shells/bash/pkg-deinstall | 4 | ||||
-rw-r--r-- | shells/bash/pkg-install | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/shells/bash/pkg-deinstall b/shells/bash/pkg-deinstall index 6f49f2c3ca3b..3e19db4b1637 100644 --- a/shells/bash/pkg-deinstall +++ b/shells/bash/pkg-deinstall @@ -12,7 +12,7 @@ DEINSTALL) if grep -qs "^$BASH\$" "$SHELLS"; then if [ `id -u` -eq 0 ]; then TMPSHELLS=`mktemp -t shells` - grep -v "^$BASH\$" "$SHELLS" > "$TMPSHELLS" + grep -v "^$(echo "$BASH" | /usr/bin/sed -e 's|//|/|g')\$" "$SHELLS" > "$TMPSHELLS" cat "$TMPSHELLS" > "$SHELLS" rm "$TMPSHELLS" else @@ -22,7 +22,7 @@ DEINSTALL) if grep -qs "^$RBASH\$" "$SHELLS"; then if [ `id -u` -eq 0 ]; then TMPSHELLS=`mktemp -t shells` - grep -v "^$RBASH\$" "$SHELLS" > "$TMPSHELLS" + grep -v "^$(echo "$RBASH" | /usr/bin/sed -e 's|//|/|g')\$" "$SHELLS" > "$TMPSHELLS" cat "$TMPSHELLS" > "$SHELLS" rm "$TMPSHELLS" else diff --git a/shells/bash/pkg-install b/shells/bash/pkg-install index c42db4871432..8aa663d21621 100644 --- a/shells/bash/pkg-install +++ b/shells/bash/pkg-install @@ -11,14 +11,14 @@ case $2 in POST-INSTALL) if [ -d "${SHELLS%/*}" ] && ! grep -qs "^$BASH\$" "$SHELLS"; then if [ `id -u` -eq 0 ]; then - echo "$BASH" >> "$SHELLS" + echo "$BASH" | /usr/bin/sed -e 's|//|/|g' >> "$SHELLS" else echo "Not root, please add $BASH to $SHELLS manually" fi fi if [ -d "${SHELLS%/*}" ] && ! grep -qs "^$RBASH\$" "$SHELLS"; then if [ `id -u` -eq 0 ]; then - echo "$RBASH" >> "$SHELLS" + echo "$RBASH" | /usr/bin/sed -e 's|//|/|g' >> "$SHELLS" else echo "Not root, please add $RBASH to $SHELLS manually" fi |