WIS-SEC-BOF/create_archive.sh

17 lines
254 B
Bash
Raw Normal View History

#!/usr/bin/env sh
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"