Skip to content

Instantly share code, notes, and snippets.

@Rwrf9
Rwrf9 / sphp
Created October 3, 2017 10:08
MAMP switch php version
#!/bin/bash
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
exit 1
fi
# Usage
if [ $# -ne 1 ]; then
echo "Usage: sphp [phpversion]"