Created
February 26, 2024 16:11
-
-
Save cbaconnier/40d001d0144368363c195da00141d9e6 to your computer and use it in GitHub Desktop.
vapor-confirmation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vapor () { | |
local VAPOR_PATH=~/.config/composer/vendor/bin/vapor | |
if [[ "$*" == *"production"* ]]; then | |
/bin/echo -n "Enter \"${PWD##*/}\" to confirm: " | |
read answer | |
if [ "$answer" = ${PWD##*/} ]; then | |
$VAPOR_PATH "$@" | |
else | |
echo "Failed" | |
fi | |
else | |
$VAPOR_PATH "$@" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment