Skip to content

Commit bc21502

Browse files
committed
fix: check os before executing
1 parent e4fe191 commit bc21502

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

1password-integration.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ rollback() {
2626
exit 1
2727
}
2828

29+
# Check OS
30+
if [[ "$(uname)" != "Linux" ]]; then
31+
echo "This script is only for Linux."
32+
echo "Visit https://docs.zen-browser.app/guides/1password to learn more"
33+
exit 1
34+
fi
35+
2936
SUDO=
3037
if [ "$(id -u)" -ne 0 ]; then
3138
if ! available sudo; then

0 commit comments

Comments
 (0)