Browse Source

Exit immediately if a command exits with a non-zero status.

pull/870/head
Atakan Özceviz 7 years ago
parent
commit
ae91ced03e
  1. 7
      nupkg/pack.sh

7
nupkg/pack.sh

@ -1,5 +1,6 @@
#!/bin/bash
. ./common.sh
set -eE
# Rebuild all solutions
for solution in "${solutions[@]}"
@ -18,12 +19,6 @@ do
cd "$projectFolder"
rm -rf "$projectFolder/bin/Release" \
& dotnet pack --no-restore -c Release -p:SourceLinkCreate=true -o "$packFolder"
if [ $? -ne 0 ]
then
echo "Packaging failed for the project: $projectFolder"
exit 1
fi
done
# Go back to the pack folder

Loading…
Cancel
Save