diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2007-06-28 23:33:44 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2007-06-28 23:33:44 +0000 |
commit | cacc031ebcd27d12b515be6a1a965904b3932ae2 (patch) | |
tree | 93034671b7915593611ab39a7df0c4c0bf92ea53 /shells/bash/pkg-install | |
parent | abe6aac47f38c0a7e53c8bdbfcf00e7780ab0237 (diff) |
Support PREFIX=/
PR: 95566
Submitted by: Andrew McNaughton <andrew@scoop.co.nz>
Notes
Notes:
svn path=/head/; revision=194422
Diffstat (limited to 'shells/bash/pkg-install')
-rw-r--r-- | shells/bash/pkg-install | 4 |
1 files changed, 2 insertions, 2 deletions
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 |