wok rev 15805
bash: prevent rm .bashrc error when removing bash
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Thu Jan 23 13:38:58 2014 +0000 (2014-01-23) |
parents | c324508a40bf |
children | 91c1257103ef |
files | bash/receipt |
line diff
1.1 --- a/bash/receipt Wed Jan 22 18:22:51 2014 +0100 1.2 +++ b/bash/receipt Thu Jan 23 13:38:58 2014 +0000 1.3 @@ -96,5 +96,7 @@ 1.4 root=$1 1.5 echo "Setting back sh as default for all users" 1.6 sed -i "s/:\/bin\/bash$/:\/bin\/sh/g" /etc/passwd 1.7 + if [ -f /etc/skel/.bashrc ]; then 1.8 rm /etc/skel/.bashrc 1.9 + fi 1.10 }