summaryrefslogtreecommitdiff
path: root/bin/hstow
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2023-01-23 08:17:06 -0700
committerSean Whitton <spwhitton@spwhitton.name>2023-01-27 15:16:03 -0700
commit27bfaa1f9ca6f1c097d0d38190f63d50e21bc801 (patch)
treeb25f1096f16bd32efb30fd92ddb778bc28a7f405 /bin/hstow
parente44af5d89c4d34591f2dfb4a208756db6f2c24d9 (diff)
downloaddotfiles-27bfaa1f9ca6f1c097d0d38190f63d50e21bc801.tar.gz
hstow: move a few other things out to posix-defuns.sh
Diffstat (limited to 'bin/hstow')
-rwxr-xr-xbin/hstow12
1 files changed, 0 insertions, 12 deletions
diff --git a/bin/hstow b/bin/hstow
index 835e2a84..7dbcf0ec 100755
--- a/bin/hstow
+++ b/bin/hstow
@@ -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"
}