aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinteractive.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/interactive.sh b/interactive.sh
index d807d05..ed463df 100755
--- a/interactive.sh
+++ b/interactive.sh
@@ -1,4 +1,6 @@
-#!/bin/sh -e
+#!/usr/bin/env bash
+
+set -e
print_selected_window_id() {
xwininfo | grep 'Window id:' | cut -d' ' -f4