mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22:53 -05:00
Fixed ZSH issues, added strict mode (http://redsymbol.net/articles/unofficial-bash-strict-mode/)
This commit is contained in:
parent
4226a00c31
commit
c6c9254a9d
1 changed files with 3 additions and 3 deletions
|
@ -148,7 +148,7 @@ updates () {
|
||||||
echo $updates >| ~/.welcome/updates
|
echo $updates >| ~/.welcome/updates
|
||||||
pkill -P $pid sleep
|
pkill -P $pid sleep
|
||||||
sleep 5
|
sleep 5
|
||||||
if [ -a ~/.welcome/updates ]; then
|
if [[ -a ~/.welcome/updates ]]; then
|
||||||
rm ~/.welcome/updates
|
rm ~/.welcome/updates
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
|
@ -160,11 +160,11 @@ updates () {
|
||||||
exec 3>&2
|
exec 3>&2
|
||||||
exec 2> /dev/null
|
exec 2> /dev/null
|
||||||
sleep 5
|
sleep 5
|
||||||
chk=$(echo $?) &> /dev/null
|
chk=$(echo $?)
|
||||||
exec 2>&3
|
exec 2>&3
|
||||||
exec 3>&-
|
exec 3>&-
|
||||||
|
|
||||||
if [ -a updates ]; then
|
if [[ -a updates ]]; then
|
||||||
updates=$(cat ~/.welcome/updates)
|
updates=$(cat ~/.welcome/updates)
|
||||||
rm ~/.welcome/updates
|
rm ~/.welcome/updates
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue