fileset

git mirror of https://ccx.te2000.cz/bzr/fileset
git clone https://ccx.te2000.cz/git/fileset
Log | Files | Refs | README

commit 4cced2cb91b19ebb648b803cfdcc936148cd6f94
parent 7f3378ed360a5c799cb8595756053819c8146cc4
Author: Jan Pobříslo <ccx@te2000.cz>
Date:   Wed, 19 Oct 2022 16:29:28 +0200

POSIX-ify fsapply
Diffstat:
Mbin/fsapply | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/fsapply b/bin/fsapply @@ -5,13 +5,13 @@ if getopts x o; then else opt="" fi -if ! [[ -d $1 ]]; then +if ! test -d $1; then printf '%s\n' >&2 "supply directory argument (got '$1')" exit 2 fi cd "$1" || exit $? shift -if [[ -n "$opt" ]]; then +if test -n "$opt"; then fileset "$@" | ${FILESET_SHELL:-sh} $opt else fileset "$@" | ${FILESET_SHELL:-sh}