INNER CODE UNIT · Shell
found
nextcloud/docker · docker-entrypoint.sh:42
found=$((found+1))
run_as "${script_file_path}" || {
return_code="$?"
echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}"
exit 1
}
echo "==> Finished executing the script: \"${script_file_path}\""
done
if [ "$found" -gt "0" ]; then
echo "=> Completed executing scripts in the \"$1\" folder"
else
echo "==> Skipped: the \"$1\" folder does not contain any valid scripts"
fi
)
}
# usage: file_env VAR [DEFAULT]