Skip to content

Instantly share code, notes, and snippets.

@loganwright
Created February 21, 2016 02:31
Show Gist options
  • Save loganwright/312a3fdaeadebaaa6a86 to your computer and use it in GitHub Desktop.
Save loganwright/312a3fdaeadebaaa6a86 to your computer and use it in GitHub Desktop.
Run file as shell if exists
cd $BUILD_DIR
echo "-----> Running Prebuild.2"
if [ -f "./prebuild" ];
then
sh ./prebuild
else
echo "File does not exist."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment