Skip to content
Snippets Groups Projects
Commit 2c842ff8 authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci
Browse files

build-update-package: Added a check for tar(1)

parent 13f7b996
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,10 @@ fi ...@@ -59,7 +59,10 @@ fi
printf "Compressing SEED2-run files..." printf "Compressing SEED2-run files..."
cd "${AGENTDIR}" cd "${AGENTDIR}"
TARFILE=$(tempfile --prefix=SEED2-tar) TARFILE=$(tempfile --prefix=SEED2-tar)
tar -czf "${TARFILE}" SEED2-run if ! tar -czf "${TARFILE}" SEED2-run; then
printf "ERROR: Failed to compress the agent files.\n"
exit 2
fi
cd - &> /dev/null cd - &> /dev/null
printf " done\n" printf " done\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment