Skip to content

Commit

Permalink
betaurl optional argument added
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtBatten authored and taniman committed May 6, 2019
1 parent c748b4c commit a4a5837
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ else
### pad the columns by 8 places for legibility %-8s\n ###
echo "$(tput setaf 6)Your current configuration is: $(tput sgr0)"
paste <(printf "%-8s\n" "${name[@]}") <(printf "%-8s\n" "${path[@]}")
if [[ $1 == "auto" ]]; then
if [[ "$@" == *"auto"* || "$@" == *"ProfitTrailer"* ]]; then
skipsetup=Y
else
echo
Expand Down Expand Up @@ -279,7 +279,7 @@ echo " The current version is $(tput setaf 6) $current $(tput sgr0)"
echo " Latest release is version $(tput setaf 6) $latest $(tput sgr0)"


if [[ ! "$@" == *"auto"* || ! "$@" == *"ProfitTrailer"* ]]; then
if ! [[ "$@" == *"auto"* || "$@" == *"/ProfitTrailer-"* ]]; then
echo
echo "Please select an option below: (1-7)"

Expand Down Expand Up @@ -389,6 +389,7 @@ else
download=$arg
version=$(echo $download | rev | cut -d'/' -f 1 | rev | sed 's/\(.*\).zip/\1/' | sed 's/\(.*\).jar/\1/' | rev | sed 's/\(.*\)-reliarTtiforP/\1/' | rev)
fi
done
echo
secs=$((10))
while [ $secs -gt 0 ]; do
Expand Down

0 comments on commit a4a5837

Please sign in to comment.