# HG changeset patch # User Richard Dunbar # Date 1390484338 0 # Node ID b5a7e88f4bf66032b82d04dae4f549d4d33e729a # Parent c324508a40bf8d32f175dbb20f78e35a804b0f50 bash: prevent rm .bashrc error when removing bash diff -r c324508a40bf -r b5a7e88f4bf6 bash/receipt --- a/bash/receipt Wed Jan 22 18:22:51 2014 +0100 +++ b/bash/receipt Thu Jan 23 13:38:58 2014 +0000 @@ -96,5 +96,7 @@ root=$1 echo "Setting back sh as default for all users" sed -i "s/:\/bin\/bash$/:\/bin\/sh/g" /etc/passwd + if [ -f /etc/skel/.bashrc ]; then rm /etc/skel/.bashrc + fi }