mirror of
https://github.com/TangentFoxy/LovePackaging.git
synced 2024-11-09 09:34:22 +00:00
hotfix stupid errors, remove custom config option cause broken utterly
This commit is contained in:
parent
b9a53a4afb
commit
05785c235e
15
build
15
build
@ -6,18 +6,21 @@ set -o nounset
|
|||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# get config
|
# get config
|
||||||
if [ ! -z "$1" ]; then
|
#if [ ! -z "$1" ]; then
|
||||||
# has a command-line option, which should be the config file to load from
|
# # has a command-line option, which should be the config file to load from
|
||||||
source "$1"
|
# source "$1"
|
||||||
else
|
#else
|
||||||
source ./config.sh
|
source ./config.sh
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
|
# make $outputDir if it doesn't exist
|
||||||
|
if [ ! -d "$outputDir" ]; then mkdir -p "$outputDir"; fi
|
||||||
|
|
||||||
# append -buildN build numbers
|
# append -buildN build numbers
|
||||||
# (build.number file stored in $outputDir)
|
# (build.number file stored in $outputDir)
|
||||||
if [ $autoNumberBuilds = true ]; then
|
if [ $autoNumberBuilds = true ]; then
|
||||||
# get the number if file exists, else use 1
|
# get the number if file exists, else use 1
|
||||||
if [ ! -r "$outputDir/build.number" ]; then
|
if [ -r "$outputDir/build.number" ]; then
|
||||||
source "$outputDir/build.number"
|
source "$outputDir/build.number"
|
||||||
((build++))
|
((build++))
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user