mirror of
https://github.com/notwa/rc
synced 2024-11-05 04:29:03 -08:00
$?
is implicit
This commit is contained in:
parent
b34bb36329
commit
2ae755fff3
2 changed files with 7 additions and 7 deletions
6
install
6
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() {
|
||||
|
|
|
@ -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() { ### @-
|
||||
|
|
Loading…
Reference in a new issue