diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2023-01-23 08:17:06 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2023-01-27 15:16:03 -0700 |
commit | 27bfaa1f9ca6f1c097d0d38190f63d50e21bc801 (patch) | |
tree | b25f1096f16bd32efb30fd92ddb778bc28a7f405 /bin/hstow | |
parent | e44af5d89c4d34591f2dfb4a208756db6f2c24d9 (diff) | |
download | dotfiles-27bfaa1f9ca6f1c097d0d38190f63d50e21bc801.tar.gz |
hstow: move a few other things out to posix-defuns.sh
Diffstat (limited to 'bin/hstow')
-rwxr-xr-x | bin/hstow | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -33,9 +33,6 @@ set -efu IFS="$(printf '\n\t')" export LC_ALL=C -tab="$(printf '\t')" -cchars="$(printf '*[\001-\037\177]*')" - . ~/src/dotfiles/lib-src/posix-defuns.sh # readlink(1) is not POSIX, so we require an alternative. @@ -88,15 +85,6 @@ disjoin_file () { fi } -dir_contents () { - ( cd "$1"; find . ! -name . ! -name "$cchars" -print -prune ) -} - -fail () { - echo >&2 "hstow: $*" - exit 127 -} - usage () { fail "usage: hstow stow|unstow|restow|adopt DIRECTORY" } |