From 601f77f9df95ba48ad6adf0b0307dc0d65235110 Mon Sep 17 00:00:00 2001 From: Breizh Date: Fri, 7 Oct 2022 12:52:28 +0200 Subject: [PATCH] Correction de la gestion des liens symboliques --- controller.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller.sh b/controller.sh index d10d42d..f04351f 100755 --- a/controller.sh +++ b/controller.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x # Configuration generator=/home/files/scripts/generator.sh @@ -19,7 +19,7 @@ do full=$(realpath "$i") # Exclusion(s) - if [[ "$full" =~ ^${root}/p || -L "$i" ]] + if [[ "$full" =~ ^${root}/p || -h "${i::-1}" ]] then continue fi