mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22:53 -05:00
Fixed issues with strict mode by removing it for now. Fixes #5
This commit is contained in:
parent
68ab6a6310
commit
b905684b63
1 changed files with 2 additions and 6 deletions
|
@ -1,7 +1,3 @@
|
||||||
# Bash "strict mode" => http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
|
||||||
set -euo pipefail
|
|
||||||
IFS=$'\n\t'
|
|
||||||
|
|
||||||
export LC_NUMERIC="en_US.UTF-8" &> /dev/null #Fix for locales that use , instead of . as a decimal delimiter
|
export LC_NUMERIC="en_US.UTF-8" &> /dev/null #Fix for locales that use , instead of . as a decimal delimiter
|
||||||
|
|
||||||
# Define "global" variables
|
# Define "global" variables
|
||||||
|
@ -270,9 +266,9 @@ lastdate=$(cat ~/.welcome/udm 2>/dev/null)
|
||||||
|
|
||||||
if [[ $((date - lastdate)) -ge 86400 ]]; then
|
if [[ $((date - lastdate)) -ge 86400 ]]; then
|
||||||
if [[ "$environment" = "bash" ]]; then
|
if [[ "$environment" = "bash" ]]; then
|
||||||
bash install.sh auto
|
bash ~/.welcome/install.sh auto
|
||||||
elif [[ "$environment" = "zsh" ]]; then
|
elif [[ "$environment" = "zsh" ]]; then
|
||||||
zsh install.sh auto
|
zsh ~/.welcome/install.sh auto
|
||||||
fi
|
fi
|
||||||
date +%s >| ~/.welcome/udm 2>/dev/null
|
date +%s >| ~/.welcome/udm 2>/dev/null
|
||||||
elif ! [[ -f ~/.welcome/udm ]]; then
|
elif ! [[ -f ~/.welcome/udm ]]; then
|
||||||
|
|
Loading…
Reference in a new issue