Commit 5287e692 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Tar creation without subdirectories

parent 11c3a591
......@@ -185,8 +185,9 @@ pack_and_send() {
fi
fi
echo "[$KEY] Creating tar on $RESIFDD_WORKDIR/$KEY.tar"
echo "[$KEY] tar cf $RESIFDD_WORKDIR/$KEY.tar -C ${dir%$YEAR/$NETWORK/$STATION} $dir"
tar cf $RESIFDD_WORKDIR/$KEY.tar -C ${dir%$YEAR/$NETWORK/$STATION} $dir
tar_cmd="tar cf $RESIFDD_WORKDIR/$KEY.tar -C ${dir%$YEAR/$NETWORK/$STATION} ${YEAR}/${NETWORK}/${STATION}"
echo "[$KEY] $tar_cmd"
eval $tar_cmd
if [[ $? -ne 0 ]]; then
# Something went wrong creating archive. Exit
echo "[$KEY] Error 007 creating tar"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment