aboutsummaryrefslogtreecommitdiff
path: root/isbypass
diff options
context:
space:
mode:
Diffstat (limited to 'isbypass')
-rwxr-xr-xisbypass10
1 files changed, 5 insertions, 5 deletions
diff --git a/isbypass b/isbypass
index cd03041..d704112 100755
--- a/isbypass
+++ b/isbypass
@@ -1,9 +1,9 @@
#!/bin/env sh
-(/usr/local/bin/ishome && /usr/local/bin/hasyubi) && (
- notify-send "access bypass" &
+if (/usr/local/bin/ishome && /usr/local/bin/hasyubi); then
+ notify-send "access bypass" "$1" &
exit 0
-) || (
- notify-send "awaiting authentication" &
+else
+ notify-send "awaiting authentication" "$1" &
exit 1
-)
+fi