Skip to content

Commit

Permalink
Fixed issues with strict mode by removing it for now. Fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
G2-Games committed Mar 7, 2023
1 parent 68ab6a6 commit b905684
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions welcome.sh
Original file line number Diff line number Diff line change
@@ -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

# Define "global" variables
Expand Down Expand Up @@ -270,9 +266,9 @@ lastdate=$(cat ~/.welcome/udm 2>/dev/null)

if [[ $((date - lastdate)) -ge 86400 ]]; then
if [[ "$environment" = "bash" ]]; then
bash install.sh auto
bash ~/.welcome/install.sh auto
elif [[ "$environment" = "zsh" ]]; then
zsh install.sh auto
zsh ~/.welcome/install.sh auto
fi
date +%s >| ~/.welcome/udm 2>/dev/null
elif ! [[ -f ~/.welcome/udm ]]; then
Expand Down

0 comments on commit b905684

Please sign in to comment.