add more variables and try to create a prerelease

This commit is contained in:
Erik Gomez
2020-06-19 16:23:04 -05:00
parent 49f16c10e9
commit 4b5f77616f
2 changed files with 72 additions and 4 deletions
+12 -2
View File
@@ -6,7 +6,6 @@
# Run this with your current directory being the path where this script is located
# Harcoded versions
PYTHON_VERSION=3.8.3
RP_SHA="8bce58e91895978da6f238c1d2e1de3559ea4643"
MP_SHA="71c57fcfdf43692adcd41fa7305be08f66bae3e5"
# Hardcoded paths
@@ -54,8 +53,19 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then
exit 1
fi
if [ -n "$3" ]; then
PYTHON_VERSION=$3
else
PYTHON_VERSION=3.8.3
fi
if [ -n "$4" ]; then
DATE=$4
else
DATE=$(/bin/date -u "+%m%d%Y%H%M%S")
fi
# Variables
DATE=$(/bin/date -u "+%m%d%Y%H%M%S")
TOOLSDIR=$(dirname $0)
OUTPUTSDIR="$TOOLSDIR/outputs"
CONSOLEUSER=$(/usr/bin/stat -f "%Su" /dev/console)