Skip to content

Instantly share code, notes, and snippets.

@maretekent
Created November 14, 2019 14:25
Show Gist options
  • Save maretekent/ee7671c150d3cca9748fa07d8771e452 to your computer and use it in GitHub Desktop.
Save maretekent/ee7671c150d3cca9748fa07d8771e452 to your computer and use it in GitHub Desktop.
zip on the fly
INPUT=$1
TIMESTAMP=`date +%Y-%m-%d-%H-%M-%S`
ARCHIVE_NAME=${INPUT}-${TIMESTAMP}.zip
mkdir -p build
cd $LAMBDA
zip -r $ARCHIVE_NAME .
mv $ARCHIVE_NAME ../build/
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment