Kaydet (Commit) 5621aa6b authored tarafından David Tardon's avatar David Tardon

fdo#50436 fail if unpacking of tarball failed

Change-Id: Iacad0141a72a12e67e5cc33b2e2196b74a240e81
üst bcbdf676
...@@ -75,7 +75,10 @@ for tarball in $tarballs ; do ...@@ -75,7 +75,10 @@ for tarball in $tarballs ; do
echo "Unpacking $tarname..." echo "Unpacking $tarname..."
echo tar -xf "$tarball" -C "$lo_src_dir" echo tar -xf "$tarball" -C "$lo_src_dir"
tar -xf "$tarball" -C "$lo_src_dir" if ! tar -xf "$tarball" -C "$lo_src_dir"; then
echo "Error: could not unpack $tarname"
exit 1
fi
# create symlinks for module directories; ignore git-hooks directory # create symlinks for module directories; ignore git-hooks directory
for dir in `find "$lo_src_dir/$tarname" -mindepth 1 -maxdepth 1 -type d -path $lo_src_dir/$tarname/git-hooks -o -printf "$tarname/%f\n"` ; do for dir in `find "$lo_src_dir/$tarname" -mindepth 1 -maxdepth 1 -type d -path $lo_src_dir/$tarname/git-hooks -o -printf "$tarname/%f\n"` ; do
......
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