Created
August 22, 2015 05:48
-
-
Save koizuss/df4c3c80c0007c36bef1 to your computer and use it in GitHub Desktop.
provision scripts
This file contains 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
#/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