Skip to content

Instantly share code, notes, and snippets.

@iwat
Created September 9, 2014 04:41
Show Gist options
  • Save iwat/0e190e3ab4772b737e69 to your computer and use it in GitHub Desktop.
Save iwat/0e190e3ab4772b737e69 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ "$1" != "" ]; then
FILE=$1
REPO=$1_repo
else
exit 1
fi
if [ ! -d "$REPO" ]; then
exit 1
fi
cd "$REPO"
zip -r "../$1_recovered" *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment