From 1b2ab9a0acaf936dabd961968d39fa005aefbab4 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 4 Jul 2024 20:21:49 -0700 Subject: [PATCH] make syntax consistent --- update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update b/update index b1c348a..999a065 100755 --- a/update +++ b/update @@ -30,8 +30,8 @@ backup="backup-$(date -u +%s)" || die 'failed to determine date' if ! [ -e sh/obtain ]; then url=https://eaguru.guru/git/notwa/rc/raw/branch/master/sh/obtain - if curl 2>&-; [ $? = 2 ]; then acquire() { curl -fsS -m45 -o- "$*" ;} - elif wget 2>&-; [ $? = 1 ]; then acquire() { wget -qt1 -T45 -O- "$*" ;} + if curl 2>&-; [ $? = 2 ]; then acquire() { curl -fsS -m45 -o- "$*"; } + elif wget 2>&-; [ $? = 1 ]; then acquire() { wget -qt1 -T45 -O- "$*"; } else die '"sh/obtain" missing, curl and wget missing as well' fi mkdir -p sh || die 'failed to create "sh" directory'