Skip to content

Commit

Permalink
Update jenkins-klog-package-sources.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
d authored and d committed Mar 23, 2024
1 parent df846d7 commit 6f29a20
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions devscripts/jenkins-klog-package-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,19 @@ export CXXFLAGS=-std=c++11
rm src/README.md

NEW_NAME=klog-$KLOG_VERSION
mv src "$NEW_NAME"
if [ $? -ne 0 ]; then
echo "There was an error when copying the KLog folder"
exit 1
if ! mv src "$NEW_NAME"
#if [ $? -ne 0 ]; then
then
echo "There was an error when copying the KLog folder"
exit 1
fi

tar cvzf "$NEW_NAME".tar.gz "$NEW_NAME"
if [ $? -eq 0 ]; then
echo "You can find the tar.gz file in this folder... enjoy KLog!"
exit 0
if ! tar cvzf "$NEW_NAME".tar.gz "$NEW_NAME"
then
#if [ $? -eq 0 ]; then
echo "You can find the tar.gz file in this folder... enjoy KLog!"
exit 0
else
çecho "There was an error when packaging KLog"
exit 1
echo "There was an error when packaging KLog"
exit 1
fi

0 comments on commit 6f29a20

Please sign in to comment.