prefixsubdirs: add exception for "."

master
Matteo Cypriani 2 years ago
parent bf675c1808
commit 82011595c0

@ -1,6 +1,6 @@
#!/bin/sh
#
# prefixsubdirs.sh, Copyright © 2018 Matteo Cypriani
# prefixsubdirs.sh, Copyright © 2018, 2021 Matteo Cypriani
#
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
@ -45,6 +45,11 @@ while [ -n "$1" ] ; do
continue
fi
if [ "$dir" = '.' ] ; then
printf 'Warning! Using "." is not (yet) supported and the outcome is most likely not what you want: ignoring.\n' >&2
continue
fi
printf 'Entering "%s" ...\n' "$dir"
prefix_subdirs "$dir"
done

Loading…
Cancel
Save