Skip to content

Instantly share code, notes, and snippets.

@cbaconnier
Created February 26, 2024 16:11
Show Gist options
  • Save cbaconnier/40d001d0144368363c195da00141d9e6 to your computer and use it in GitHub Desktop.
Save cbaconnier/40d001d0144368363c195da00141d9e6 to your computer and use it in GitHub Desktop.
vapor-confirmation
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