Update jenkins-klog-package-sources.sh

This commit is contained in:
d 2024-03-23 23:18:37 +01:00
parent df846d75e9
commit 6f29a203ce

View File

@ -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
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
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"
echo "There was an error when packaging KLog"
exit 1
fi