Skip to content

Commit a548ee7

Browse files
author
GitHub Workflow
committed
Runs update.sh
1 parent 583fbe3 commit a548ee7

6 files changed

Lines changed: 18 additions & 24 deletions

File tree

32/apache/entrypoint.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ run_path() {
3535
while read -r script_file_path; do
3636
if ! [ -x "${script_file_path}" ]; then
3737
echo "==> The script \"${script_file_path}\" was skipped, because it lacks the executable flag"
38-
found=$((found-1))
3938
continue
4039
fi
4140

@@ -49,10 +48,10 @@ run_path() {
4948

5049
echo "==> Finished executing the script: \"${script_file_path}\""
5150
done
52-
if [ "$found" -lt "1" ]; then
53-
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
51+
if [ "$found" -gt "0" ]; then
52+
echo "=> Completed executing scripts in the \"$1\" folder"
5453
else
55-
echo "=> Completed executing scripts in the \"$1\" folder"
54+
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
5655
fi
5756
)
5857
}

32/fpm-alpine/entrypoint.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ run_path() {
3535
while read -r script_file_path; do
3636
if ! [ -x "${script_file_path}" ]; then
3737
echo "==> The script \"${script_file_path}\" was skipped, because it lacks the executable flag"
38-
found=$((found-1))
3938
continue
4039
fi
4140

@@ -49,10 +48,10 @@ run_path() {
4948

5049
echo "==> Finished executing the script: \"${script_file_path}\""
5150
done
52-
if [ "$found" -lt "1" ]; then
53-
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
51+
if [ "$found" -gt "0" ]; then
52+
echo "=> Completed executing scripts in the \"$1\" folder"
5453
else
55-
echo "=> Completed executing scripts in the \"$1\" folder"
54+
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
5655
fi
5756
)
5857
}

32/fpm/entrypoint.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ run_path() {
3535
while read -r script_file_path; do
3636
if ! [ -x "${script_file_path}" ]; then
3737
echo "==> The script \"${script_file_path}\" was skipped, because it lacks the executable flag"
38-
found=$((found-1))
3938
continue
4039
fi
4140

@@ -49,10 +48,10 @@ run_path() {
4948

5049
echo "==> Finished executing the script: \"${script_file_path}\""
5150
done
52-
if [ "$found" -lt "1" ]; then
53-
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
51+
if [ "$found" -gt "0" ]; then
52+
echo "=> Completed executing scripts in the \"$1\" folder"
5453
else
55-
echo "=> Completed executing scripts in the \"$1\" folder"
54+
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
5655
fi
5756
)
5857
}

33/apache/entrypoint.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ run_path() {
3535
while read -r script_file_path; do
3636
if ! [ -x "${script_file_path}" ]; then
3737
echo "==> The script \"${script_file_path}\" was skipped, because it lacks the executable flag"
38-
found=$((found-1))
3938
continue
4039
fi
4140

@@ -49,10 +48,10 @@ run_path() {
4948

5049
echo "==> Finished executing the script: \"${script_file_path}\""
5150
done
52-
if [ "$found" -lt "1" ]; then
53-
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
51+
if [ "$found" -gt "0" ]; then
52+
echo "=> Completed executing scripts in the \"$1\" folder"
5453
else
55-
echo "=> Completed executing scripts in the \"$1\" folder"
54+
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
5655
fi
5756
)
5857
}

33/fpm-alpine/entrypoint.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ run_path() {
3535
while read -r script_file_path; do
3636
if ! [ -x "${script_file_path}" ]; then
3737
echo "==> The script \"${script_file_path}\" was skipped, because it lacks the executable flag"
38-
found=$((found-1))
3938
continue
4039
fi
4140

@@ -49,10 +48,10 @@ run_path() {
4948

5049
echo "==> Finished executing the script: \"${script_file_path}\""
5150
done
52-
if [ "$found" -lt "1" ]; then
53-
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
51+
if [ "$found" -gt "0" ]; then
52+
echo "=> Completed executing scripts in the \"$1\" folder"
5453
else
55-
echo "=> Completed executing scripts in the \"$1\" folder"
54+
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
5655
fi
5756
)
5857
}

33/fpm/entrypoint.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ run_path() {
3535
while read -r script_file_path; do
3636
if ! [ -x "${script_file_path}" ]; then
3737
echo "==> The script \"${script_file_path}\" was skipped, because it lacks the executable flag"
38-
found=$((found-1))
3938
continue
4039
fi
4140

@@ -49,10 +48,10 @@ run_path() {
4948

5049
echo "==> Finished executing the script: \"${script_file_path}\""
5150
done
52-
if [ "$found" -lt "1" ]; then
53-
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
51+
if [ "$found" -gt "0" ]; then
52+
echo "=> Completed executing scripts in the \"$1\" folder"
5453
else
55-
echo "=> Completed executing scripts in the \"$1\" folder"
54+
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
5655
fi
5756
)
5857
}

0 commit comments

Comments
 (0)