Skip to content

Instantly share code, notes, and snippets.

@henix
Created December 26, 2014 06:01
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 henix/2d6648c189c8637fb28b to your computer and use it in GitHub Desktop.
Save henix/2d6648c189c8637fb28b to your computer and use it in GitHub Desktop.
rel() {
[ ! -d 'target/universal/stage' ] && echo stage not exist! && return 1
name=$(pwd | tr '/' '\n' | tail -n1)
timestamp=$(date +%Y%m%d_%H%M%S)
cp -r "target/universal/stage" "/apps/$name/stage-$timestamp"
ln -sTv "stage-$timestamp" "/apps/$name/stage"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment