Skip to content

Commit e2441b0

Browse files
committed
feat: use less surprising return values
Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
1 parent bca0396 commit e2441b0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

custom/aliases.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9650,10 +9650,10 @@ wget_download() {
96509650
grep -c -e '.'
96519651
)" -eq 1 ||
96529652
# or we fail
9653-
return 11
9654-
9653+
# EX_CONFIG
9654+
return 78
96559655
cd -- "${HOME%/}"'/Sites' ||
9656-
return 13
9656+
return "${?:-1}"
96579657

96589658
# user agent
96599659
# https://web.archive.org/web/0id_/developers.google.com/search/blog/2019/10/updating-user-agent-of-googlebot#the-new-evergreen-googlebot-and-its-user-agent
@@ -9685,7 +9685,7 @@ wget_download() {
96859685
--timestamping \
96869686
--user-agent='Mozilla/5.0 (compatible; Googlebot/2.1; +https://www.google.com/bot.html)' \
96879687
'https://'"${1-}" ||
9688-
return 17
9688+
return "${?:-1}"
96899689
}
96909690

96919691
which() {

0 commit comments

Comments
 (0)