mirror of
https://github.com/ea4k/klog.git
synced 2024-09-21 02:18:32 +00:00
Update jenkins-klog-package-sources.sh
This commit is contained in:
parent
df846d75e9
commit
6f29a203ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user