Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

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() { ...@@ -185,8 +185,9 @@ pack_and_send() {
fi fi
fi fi
echo "[$KEY] Creating tar on $RESIFDD_WORKDIR/$KEY.tar" echo "[$KEY] Creating tar on $RESIFDD_WORKDIR/$KEY.tar"
echo "[$KEY] 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}"
tar cf $RESIFDD_WORKDIR/$KEY.tar -C ${dir%$YEAR/$NETWORK/$STATION} $dir echo "[$KEY] $tar_cmd"
eval $tar_cmd
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
# Something went wrong creating archive. Exit # Something went wrong creating archive. Exit
echo "[$KEY] Error 007 creating tar" 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