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

$? is implicit

This commit is contained in:
Connor Olding 2021-10-05 10:59:05 -07:00
parent b34bb36329
commit 2ae755fff3
2 changed files with 7 additions and 7 deletions

View File

@ -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() {

View File

@ -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() { ### @-