We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eafa69f commit 7551b3bCopy full SHA for 7551b3b
root/etc/s6-overlay/s6-rc.d/init-custom-files/run
@@ -9,12 +9,12 @@ if [[ -e "${SCRIPTS_DIR}" ]] && [[ -n "$(/bin/ls -A ${SCRIPTS_DIR} 2>/dev/null)"
9
echo "[custom-init] Files found, executing"
10
for SCRIPT in "${SCRIPTS_DIR}"/*; do
11
NAME="$(basename "${SCRIPT}")"
12
- if [[ -f "${SCRIPT}" ]]; then
+ if [[ -x "${SCRIPT}" ]]; then
13
echo "[custom-init] ${NAME}: executing..."
14
/bin/bash "${SCRIPT}"
15
echo "[custom-init] ${NAME}: exited $?"
16
- elif [[ ! -f "${SCRIPT}" ]]; then
17
- echo "[custom-init] ${NAME}: is not a file"
+ elif [[ ! -x "${SCRIPT}" ]]; then
+ echo "[custom-init] ${NAME}: is not an executable file"
18
fi
19
done
20
else
0 commit comments