better archiver handling...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-02-26 17:25:41 +03:00
parent 7046e88ad8
commit 4c76bb0ffa

View File

@ -78,14 +78,16 @@ if [ "$1" ] ; then
BASE_PATH=$1
fi
# check if archiver exists...
if ! which ${ARCH/ *} > /dev/null 2>&1 ; then
echo "$0: ${ARCH/ *}: command not found." >&2
exit 1
fi
# do the work...
find "$BASE_PATH" -name \*.${EXT} -exec ${ARCH} \;
echo done.
find "$BASE_PATH" -name \*.${EXT} -exec ${ARCH} \; \
&& echo done.