mirror of
https://github.com/woodchen-ink/docker-firefox.git
synced 2025-07-19 06:12:00 +08:00
15 lines
361 B
Bash
Executable File
15 lines
361 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# When receiving SIGTERM, Firefox doesn't qui immediately and instead ask for
|
|
# confirmation. Instead, terminate Firefox by sending the CTRL+q key presses.
|
|
#
|
|
|
|
set -e # Exit immediately if a command exits with a non-zero status.
|
|
set -u # Treat unset variables as an error.
|
|
|
|
xdotool key "Escape"
|
|
xdotool key "ctrl+q"
|
|
|
|
# vim:ft=sh:ts=4:sw=4:et:sts=4
|
|
|