Skip to content

Instantly share code, notes, and snippets.

@twhitt14
Last active November 25, 2022 09:02
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
LOGFILE="$HOME/Desktop/xcode-pre-action.txt" ;
print_pwd () { echo "pwd: $(pwd)" >> $LOGFILE ; }
bump_version () { agvtool bump ; }
echo "" > $LOGFILE ;
echo "Build Pre-Action" >> $LOGFILE
print_pwd ;
echo "PROJECT_DIR: $PROJECT_DIR" >> $LOGFILE ;
echo "cd into project directory" >> $LOGFILE ;
cd "$PROJECT_DIR" ;
print_pwd ;
bump_version 2>> $LOGFILE ;
echo "Done" >> $LOGFILE ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment