forked from unscrambl/browser-driver-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postinstall
executable file
·17 lines (15 loc) · 949 Bytes
/
postinstall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
if [[ -n "${BROWSER_DRIVER_INSTALLER_CHROME_VERSION:-}" && -n "${BROWSER_DRIVER_INSTALLER_CHROMEDRIVER_PATH:-}" ]]; then
node ./index.js --browser-name chrome \
--browser-version "$BROWSER_DRIVER_INSTALLER_CHROME_VERSION" \
--target-path "$BROWSER_DRIVER_INSTALLER_CHROMEDRIVER_PATH"
else
echo "Environment variables for Chrome are not set, skipping post-install for Chrome"
fi
if [[ -n "${BROWSER_DRIVER_INSTALLER_FIREFOX_VERSION:-}" && -n "${BROWSER_DRIVER_INSTALLER_GECKODRIVER_PATH:-}" ]]; then
node ./index.js --browser-name firefox \
--browser-version "$BROWSER_DRIVER_INSTALLER_FIREFOX_VERSION" \
--target-path "$BROWSER_DRIVER_INSTALLER_GECKODRIVER_PATH"
else
echo "Environment variables for Firefox are not set, skipping post-install for Firefox"
fi