mirror of
https://github.com/woodchen-ink/docker-firefox.git
synced 2025-07-18 22:02:01 +08:00
28 lines
622 B
Bash
Executable File
28 lines
622 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e # Exit immediately if a command exits with a non-zero status.
|
|
set -u # Treat unset variables as an error.
|
|
|
|
# Set location of profile.
|
|
echo "--profile"
|
|
echo "/config/profile"
|
|
|
|
# Make sure we don't get ask to be the default browser.
|
|
echo "--setDefaultBrowser"
|
|
|
|
# Check if kiosk mode is enabled.
|
|
if is-bool-val-true "${FF_KIOSK:-0}"; then
|
|
echo "--kiosk"
|
|
fi
|
|
|
|
# URL to open.
|
|
# NOTE: This should be the last argument.
|
|
if [ -n "${FF_OPEN_URL:-}" ]; then
|
|
echo "$FF_OPEN_URL"
|
|
fi
|
|
|
|
# Custom arguments.
|
|
if [ -n "${FF_CUSTOM_ARGS:-}" ]; then
|
|
eval 'for word in '$FF_CUSTOM_ARGS'; do echo "$word"; done'
|
|
fi
|