Bugfix
find -maxdeph
This commit is contained in:
@@ -31,7 +31,7 @@ cd "$SCRIPTS_DIR"
|
|||||||
# On boucle sur tous les fichiers du répertoire
|
# On boucle sur tous les fichiers du répertoire
|
||||||
# (seuls les fichiers commençant par '_' ou '0' sont pris en compte)
|
# (seuls les fichiers commençant par '_' ou '0' sont pris en compte)
|
||||||
#for script in $(find . -name '[_0]*' -maxdepth 1 | sort); do
|
#for script in $(find . -name '[_0]*' -maxdepth 1 | sort); do
|
||||||
for script in $(find . ! -name _\*.sh -maxdepth 1 | sort); do
|
for script in $(find . -maxdepth 1 ! -name _\*.sh | sort); do
|
||||||
# si le fichier est exécutable et n'est pas un dossier
|
# si le fichier est exécutable et n'est pas un dossier
|
||||||
if [ -x "$SCRIPTS_DIR/$script" ] && [ -f "$SCRIPTS_DIR/$script" ]; then
|
if [ -x "$SCRIPTS_DIR/$script" ] && [ -f "$SCRIPTS_DIR/$script" ]; then
|
||||||
# on l’exécute ; le $@ permet de passer à chaque
|
# on l’exécute ; le $@ permet de passer à chaque
|
||||||
|
|||||||
@@ -449,7 +449,7 @@ dir=$(dirname $conf_apa)
|
|||||||
name=$(basename $conf_apa)
|
name=$(basename $conf_apa)
|
||||||
notif1="$dir has been modified in the last 5 minutes"
|
notif1="$dir has been modified in the last 5 minutes"
|
||||||
|
|
||||||
test=$(find $dir -name "$name" -mmin -5 -maxdepth 1)
|
test=$(find $dir -maxdepth 1 -name "$name" -mmin -5)
|
||||||
|
|
||||||
echo "$test"
|
echo "$test"
|
||||||
|
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ if [ "$display_info" = true ]; then
|
|||||||
[ "$php_info" = true ] && echo -e "Opening PHP info in Safari..." && open "https://$host.local/info.php"
|
[ "$php_info" = true ] && echo -e "Opening PHP info in Safari..." && open "https://$host.local/info.php"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test=$(find "$dir" -name "$name" -mmin -5 -maxdepth 1)
|
test=$(find "$dir" -maxdepth 1 -name "$name" -mmin -5)
|
||||||
|
|
||||||
if [ -n "$test" ]; then
|
if [ -n "$test" ]; then
|
||||||
echo -e "${red}❗️ ️$notif2${reset}"
|
echo -e "${red}❗️ ️$notif2${reset}"
|
||||||
|
|||||||
Reference in New Issue
Block a user