Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- if [ -f /path/to/real-script ] ; then
- # Local copy exists, download only if remote file is newer
- curl -z /path/to/real-script -o /path/to/real-script http://www.example.com/real-script
- else
- # Local copy does not exist, always download
- curl -o /path/to/real-script http://www.example.com/real-script
- fi
- chmod 755 /path/to/real-script
- exec /path/to/real-script "$@"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement