1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-09-19 14:24:07 -07:00

make syntax consistent

This commit is contained in:
Connor Olding 2024-07-04 20:21:49 -07:00
parent d8652a8ebd
commit 1b2ab9a0ac

4
update
View file

@ -30,8 +30,8 @@ backup="backup-$(date -u +%s)" || die 'failed to determine date'
if ! [ -e sh/obtain ]; then if ! [ -e sh/obtain ]; then
url=https://eaguru.guru/git/notwa/rc/raw/branch/master/sh/obtain url=https://eaguru.guru/git/notwa/rc/raw/branch/master/sh/obtain
if curl 2>&-; [ $? = 2 ]; then acquire() { curl -fsS -m45 -o- "$*" ;} if curl 2>&-; [ $? = 2 ]; then acquire() { curl -fsS -m45 -o- "$*"; }
elif wget 2>&-; [ $? = 1 ]; then acquire() { wget -qt1 -T45 -O- "$*" ;} elif wget 2>&-; [ $? = 1 ]; then acquire() { wget -qt1 -T45 -O- "$*"; }
else die '"sh/obtain" missing, curl and wget missing as well' else die '"sh/obtain" missing, curl and wget missing as well'
fi fi
mkdir -p sh || die 'failed to create "sh" directory' mkdir -p sh || die 'failed to create "sh" directory'