Skip to content

Instantly share code, notes, and snippets.

@lapolonio
Created November 28, 2017 02:22
Show Gist options
  • Save lapolonio/7c83359bb211443442a66c10bf2dbbd5 to your computer and use it in GitHub Desktop.
Save lapolonio/7c83359bb211443442a66c10bf2dbbd5 to your computer and use it in GitHub Desktop.
scp latest jar
MAIN_JAR=`ls -1t /path/to/file-*[0-9]-SNAPSHOT.jar | head -1`
scp ${MAIN_JAR} lapolonio@server:lib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment