Skip to content

Instantly share code, notes, and snippets.

@koizuss
Created August 22, 2015 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koizuss/df4c3c80c0007c36bef1 to your computer and use it in GitHub Desktop.
Save koizuss/df4c3c80c0007c36bef1 to your computer and use it in GitHub Desktop.
provision scripts
#/bin/sh -e
BASE_DIR=$(cd $(dirname $0) && pwd)
PROCESSED=$BASE_DIR/.processed
SCRIPTS=$BASE_DIR/scripts
[ ! -d $SCRIPTS ] && echo "ERROR: scripts not found" && exit 1
[ ! -d $PROCESSED ] && mkdir $PROCESSED
for it in $(ls -l $SCRIPTS); do
sh $it && \cp -f $PROCESSED
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment