Skip to content

Instantly share code, notes, and snippets.

@allex
Created January 29, 2015 10:36
Show Gist options
  • Save allex/6ca10da2cea5b0d218bf to your computer and use it in GitHub Desktop.
Save allex/6ca10da2cea5b0d218bf to your computer and use it in GitHub Desktop.
#!/bin/sh
txtrst=$(tput sgr0)
txtred=$(tput setaf 1)
read -p "${txtred}Do you really wanna refresh static5 resources? [y|n]${txtrst} " y
if [ "$y" = "y" ]; then
echo "Update static5 resources..."
curl http://fe.bubugao-inc.com/deploy/update/public,mall,bc,uc,help
else
echo "Cancelled."
fi
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment