Loading .shell/funcs +3 −3 Original line number Diff line number Diff line Loading @@ -169,12 +169,12 @@ do_update() code=$? unset -f finalise_timestamp test `get_shell` = bash && trap '' RETURN case $code in test -e "$1.old" && case $code in 0) rm "$1.old" ;; *) mv "$1.old" "$1" ;; esac 2>/dev/null esac } trap "finalise_timestamp '$timestamp' || rm '$timestamp'" \ trap "finalise_timestamp '$timestamp'" \ `test $shell = bash && echo RETURN || echo EXIT` test -e "$timestamp" && mv "$timestamp" "$timestamp.old" touch "$timestamp" Loading Loading
.shell/funcs +3 −3 Original line number Diff line number Diff line Loading @@ -169,12 +169,12 @@ do_update() code=$? unset -f finalise_timestamp test `get_shell` = bash && trap '' RETURN case $code in test -e "$1.old" && case $code in 0) rm "$1.old" ;; *) mv "$1.old" "$1" ;; esac 2>/dev/null esac } trap "finalise_timestamp '$timestamp' || rm '$timestamp'" \ trap "finalise_timestamp '$timestamp'" \ `test $shell = bash && echo RETURN || echo EXIT` test -e "$timestamp" && mv "$timestamp" "$timestamp.old" touch "$timestamp" Loading