Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschwenn committed Sep 30, 2014
1 parent c8694d8 commit 73003b8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

# Uninstalls pached bash binaries from https://github.com/MacMiniVault/BashUpdateSnowLeopard/releases

echo "You will be asked for your system password to uninstall patch"
if [[ $(sw_vers -productVersion | grep -E '10.6.8' ]]
then
if [[ -f /bin/bash.old ]]
then
sudo chmod +x /bin/bash.old
sudo mv /bin/bash.old /bin/bash
echo "/bin/bash has been reverted to your previous version"
fi
if [[ -f /bin/sh.old ]]
then
sudo chmod +x /bin/sh.old
sudo mv /bin/sh.old /bin/sh
echo "/bin/sh has been reverted to your previous version"
fi
echo "Please reboot to take full effect"
else
echo "It doesn't look like you are running OS X 10.6.8, can't execute"
fi

0 comments on commit 73003b8

Please sign in to comment.