Rename roles according to ansible recommendations

This commit is contained in:
Timo Makinen 2022-01-29 23:53:32 +00:00
parent ce37f81e76
commit bc5eda7487
17 changed files with 8 additions and 8 deletions

View file

@ -0,0 +1,26 @@
#!/bin/sh
set -eu
URL="${2-}"
CHROME="$(which google-chrome 2>/dev/null)"
if [ -z "$CHROME" ]; then
if [ -f "/Applications/Google Chrome.app" ]; then
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
else
echo "ERR: Failed to find Google Chrome installation"
exit 1
fi
fi
CHROMEDIR="$(mktemp -d)"
# shellcheck disable=SC2064
trap "rm -rf ${CHROMEDIR}" EXIT
"$CHROME" \
--incognito \
--no-default-browser-check \
--no-first-run \
--user-data-dir="$CHROMEDIR" \
"$URL"