WIS-SEC-BOF/create_archive.sh

19 lines
262 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2019-10-21 17:04:00 +02:00
set -e
topic='SEC_BUF_OVL'
2019-10-21 17:03:06 +02:00
name='brandl_valentin'
if [ -z "${1}" ]
then
echo "Usage: ${0} <num>"
exit 1
else
num="${1}"
fi
file_name="${topic}_${name}_abgabe0${num}"
git archive HEAD --prefix "${file_name}/" -o "../${file_name}.zip"