2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00

Merge pull request #2390 from whowutwut/fix_release_file

Fix the issue with restoring the Release file at the end of buildcore.sh
This commit is contained in:
Victor Hu
2017-01-10 09:58:00 -05:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,4 @@
# ignore the documentation build files
docs/build
# Ignore the temporary file for creating the Release version
Release.save*

View File

@@ -35,6 +35,9 @@
# The following environment variables can be modified if you need
#
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
UPLOADUSER=litingt
USER=xcat
SERVER=xcat.org
@@ -190,7 +193,7 @@ function setversionvars {
echo "$XCAT_RELEASE" >Release
}
RELEASE_FILE="Release"
RELEASE_FILE="${SCRIPTPATH}/Release"
RELEASE_FILE_SAVE="${RELEASE_FILE}.save.998"
function internal_backup()
@@ -240,7 +243,6 @@ else
echo "Error: Could not determine rpmbuild's root directory."
exit 2
fi
#echo "source=$source"
fi
#