Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (21 sloc) 670 Bytes
#!/bin/sh
# Uninstalls pached bash binaries from https://github.com/MacMiniVault/bash3.2.53/releases
echo "You will be asked for your system password to uninstall patch"
if [[ $(sw_vers -productVersion | grep -E '10.[7-9]|1[0-9]') ]]
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.8 or newer, can't execute"
fi
You can’t perform that action at this time.