Correction de la gestion des liens symboliques
This commit is contained in:
parent
f75c4325a2
commit
601f77f9df
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash -x
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
generator=/home/files/scripts/generator.sh
|
generator=/home/files/scripts/generator.sh
|
||||||
|
@ -19,7 +19,7 @@ do
|
||||||
full=$(realpath "$i")
|
full=$(realpath "$i")
|
||||||
|
|
||||||
# Exclusion(s)
|
# Exclusion(s)
|
||||||
if [[ "$full" =~ ^${root}/p || -L "$i" ]]
|
if [[ "$full" =~ ^${root}/p || -h "${i::-1}" ]]
|
||||||
then
|
then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue