Skip to content

Commit 5e8f859

Browse files
author
GitHub Workflow
committed
Runs update.sh
1 parent 00c4857 commit 5e8f859

6 files changed

Lines changed: 18 additions & 30 deletions

File tree

32/apache/entrypoint.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ run_as() {
2222
# Execute all executable files in a given directory in alphanumeric order
2323
run_path() {
2424
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
25-
local return_code=0
2625
local found=0
2726

2827
echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\""
@@ -42,12 +41,11 @@ run_path() {
4241

4342
echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\""
4443
found=$((found+1))
45-
run_as "${script_file_path}" || return_code="$?"
46-
47-
if [ "${return_code}" -ne "0" ]; then
44+
run_as "${script_file_path}" || {
45+
return_code="$?"
4846
echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}"
4947
exit 1
50-
fi
48+
}
5149

5250
echo "==> Finished executing the script: \"${script_file_path}\""
5351
done

32/fpm-alpine/entrypoint.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ run_as() {
2222
# Execute all executable files in a given directory in alphanumeric order
2323
run_path() {
2424
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
25-
local return_code=0
2625
local found=0
2726

2827
echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\""
@@ -42,12 +41,11 @@ run_path() {
4241

4342
echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\""
4443
found=$((found+1))
45-
run_as "${script_file_path}" || return_code="$?"
46-
47-
if [ "${return_code}" -ne "0" ]; then
44+
run_as "${script_file_path}" || {
45+
return_code="$?"
4846
echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}"
4947
exit 1
50-
fi
48+
}
5149

5250
echo "==> Finished executing the script: \"${script_file_path}\""
5351
done

32/fpm/entrypoint.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ run_as() {
2222
# Execute all executable files in a given directory in alphanumeric order
2323
run_path() {
2424
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
25-
local return_code=0
2625
local found=0
2726

2827
echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\""
@@ -42,12 +41,11 @@ run_path() {
4241

4342
echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\""
4443
found=$((found+1))
45-
run_as "${script_file_path}" || return_code="$?"
46-
47-
if [ "${return_code}" -ne "0" ]; then
44+
run_as "${script_file_path}" || {
45+
return_code="$?"
4846
echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}"
4947
exit 1
50-
fi
48+
}
5149

5250
echo "==> Finished executing the script: \"${script_file_path}\""
5351
done

33/apache/entrypoint.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ run_as() {
2222
# Execute all executable files in a given directory in alphanumeric order
2323
run_path() {
2424
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
25-
local return_code=0
2625
local found=0
2726

2827
echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\""
@@ -42,12 +41,11 @@ run_path() {
4241

4342
echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\""
4443
found=$((found+1))
45-
run_as "${script_file_path}" || return_code="$?"
46-
47-
if [ "${return_code}" -ne "0" ]; then
44+
run_as "${script_file_path}" || {
45+
return_code="$?"
4846
echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}"
4947
exit 1
50-
fi
48+
}
5149

5250
echo "==> Finished executing the script: \"${script_file_path}\""
5351
done

33/fpm-alpine/entrypoint.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ run_as() {
2222
# Execute all executable files in a given directory in alphanumeric order
2323
run_path() {
2424
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
25-
local return_code=0
2625
local found=0
2726

2827
echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\""
@@ -42,12 +41,11 @@ run_path() {
4241

4342
echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\""
4443
found=$((found+1))
45-
run_as "${script_file_path}" || return_code="$?"
46-
47-
if [ "${return_code}" -ne "0" ]; then
44+
run_as "${script_file_path}" || {
45+
return_code="$?"
4846
echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}"
4947
exit 1
50-
fi
48+
}
5149

5250
echo "==> Finished executing the script: \"${script_file_path}\""
5351
done

33/fpm/entrypoint.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ run_as() {
2222
# Execute all executable files in a given directory in alphanumeric order
2323
run_path() {
2424
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
25-
local return_code=0
2625
local found=0
2726

2827
echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\""
@@ -42,12 +41,11 @@ run_path() {
4241

4342
echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\""
4443
found=$((found+1))
45-
run_as "${script_file_path}" || return_code="$?"
46-
47-
if [ "${return_code}" -ne "0" ]; then
44+
run_as "${script_file_path}" || {
45+
return_code="$?"
4846
echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}"
4947
exit 1
50-
fi
48+
}
5149

5250
echo "==> Finished executing the script: \"${script_file_path}\""
5351
done

0 commit comments

Comments
 (0)