mirror of
https://github.com/BishopFox/docker-selenium.git
synced 2026-11-10 01:31:26 -10:00
* Adds files to build Opera images for Selenium * Enable tests for Opera images * Update the README.md to describe Opera images Co-authored-by: Diego Molina <[email protected]>
14 lines
292 B
Bash
Executable File
14 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
|
|
WRAPPER_PATH=$(readlink -f /usr/lib/*-linux-gnu/opera/opera)
|
|
BASE_PATH="$WRAPPER_PATH-base"
|
|
mv "$WRAPPER_PATH" "$BASE_PATH"
|
|
|
|
cat > "$WRAPPER_PATH" <<_EOF
|
|
#!/bin/bash
|
|
|
|
# Note: exec -a below is a bashism.
|
|
exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@"
|
|
_EOF
|
|
chmod +x "$WRAPPER_PATH"
|