From 2ae755fff32de38552f6a9c849976a1d72ebf990 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Tue, 5 Oct 2021 10:59:05 -0700 Subject: [PATCH] `$?` is implicit --- install | 6 +++--- sh/document | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/install b/install index 9f9664f..a2878d0 100755 --- a/install +++ b/install @@ -74,15 +74,15 @@ softlink_pseudo() { if [ -d "$d2" ]; then if [ "$d1" != ".vim/bundle" ]; then # buggy on Windows [ "$VERBOSE" -lt 1 ] || printf '\033[34m / \033[0m %s %s\n' "$d1" "$d2" >&2 - softlink_pseudo "$d1" "$d2" || exit $? + softlink_pseudo "$d1" "$d2" || exit fi elif [ -f "$d2" ]; then [ "$VERBOSE" -lt 1 ] || printf '\033[34m * \033[0m %s\n' "$d1" >&2 - hardlink "$d1" "$d2" || exit $? + hardlink "$d1" "$d2" || exit else die "i don't know how to pseudo-symlink $d2" fi - done || exit $? + done || exit } find_new_files() { diff --git a/sh/document b/sh/document index bf9f98d..a12a384 100755 --- a/sh/document +++ b/sh/document @@ -131,14 +131,14 @@ document1() { printf '\n## %s\n' 'shell functions' >> "$out" || return 5 for f in sh/*; do [ -e "$f" ] || continue # make sure glob went through - document2 "$f" >> "$out" || return $? + document2 "$f" >> "$out" || return done # second section: printf '\n## %s\n' 'miscellaneous' >> "$out" || return 5 - document2 .zshrc >> "$out" || return $? - document2 .bashrc >> "$out" || return $? - document2 .-shrc >> "$out" || return $? + document2 .zshrc >> "$out" || return + document2 .bashrc >> "$out" || return + document2 .-shrc >> "$out" || return } document() { ### @-