Skip to content

Instantly share code, notes, and snippets.

@nataliaalves03
nataliaalves03 / php-version.sh
Last active November 15, 2022 21:29
Set PHP version
#!/bin/sh
ERROR="\e[91m"
INFO="\e[94m"
SUCCESS="\e[92m"
ENDCOLOR="\e[0m"
if [ -z "$1" ]; then
echo "${ERROR}Missing PHP version. Try: sh php-version.sh 8.1${ENDCOLOR}"
exit 0