commit e745104433802308ef2d8e25c525c7625893d826
parent fb5c49728a1a0f5ba1b98f47730e99b9eb056015
Author: ccx <root@dorje.wpr.cz>
Date: Wed, 10 Mar 2021 21:36:39 +0100
Prevent union directory linking to itself.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/install b/install
@@ -57,6 +57,9 @@ make_union() {
mkdir -p ${sm_dst[.]} || exit $?
local sm union_from f
for sm union_from in "${(kv@)sm_dst}"; do
+ if [[ $sm == . ]]; then
+ continue
+ fi
for f in $union_from/*; do
ln -s ../${union_from:t}/${f:t} ${sm_dst[.]}/ || exit $?
done