From 27bfaa1f9ca6f1c097d0d38190f63d50e21bc801 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 23 Jan 2023 08:17:06 -0700 Subject: hstow: move a few other things out to posix-defuns.sh --- bin/hstow | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'bin/hstow') 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" } -- cgit v1.2.3