Fix shellcheck warnings
And disable them when necessary. This is all dumb and terrible and I
hate this world and I really really should've used a real programming
language instead of shell why did I do this to myself.
resolve-ref: initial commit
Replaces resolve_ref in lib.sh
update-tree: create nonexistent files/directories
update-tree: initial commit