aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh7
-rwxr-xr-xmove-to-next-monitor2
2 files changed, 2 insertions, 7 deletions
diff --git a/install.sh b/install.sh
index ade7f08..1408805 100755
--- a/install.sh
+++ b/install.sh
@@ -1,10 +1,5 @@
#!/usr/bin/env bash
cd $(dirname $0)
-if /usr/bin/env python -V 2>&1 | grep 'Python 2' &> /dev/null; then
- sed '1c#!/usr/bin/env python3' ./move-to-next-monitor \
- > /usr/local/bin/move-to-next-monitor
-else
- cp ./move-to-next-monitor /usr/local/bin/move-to-next-monitor
-fi
+cp ./move-to-next-monitor /usr/local/bin/move-to-next-monitor
chmod +x /usr/local/bin/move-to-next-monitor
diff --git a/move-to-next-monitor b/move-to-next-monitor
index d699bd1..691b5d9 100755
--- a/move-to-next-monitor
+++ b/move-to-next-monitor
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import subprocess
import re
bgstack15