From aefa727ebf13c5d1616751ca7d8036431933a876 Mon Sep 17 00:00:00 2001 From: Davide Laezza Date: Sat, 5 May 2018 09:42:34 +0200 Subject: /bin/env has been moved to /usr/bin/env, as in the installation script --- move-to-next-monitor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move-to-next-monitor b/move-to-next-monitor index a8e4929..d699bd1 100755 --- a/move-to-next-monitor +++ b/move-to-next-monitor @@ -1,4 +1,4 @@ -#!/bin/env python +#!/usr/bin/env python import subprocess import re -- cgit From 62ae37a2fe91232fb6855b48e65f609fff8b448d Mon Sep 17 00:00:00 2001 From: Davide Laezza Date: Sat, 5 May 2018 10:13:44 +0200 Subject: Added python2 fix --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e773930..6a24714 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash cd $(dirname $0) -cp ./move-to-next-monitor /usr/local/bin/move-to-next-monitor \ No newline at end of file +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 -- cgit From 5838eaa1ad3d4f2bd9efe38cb766bb425064cb01 Mon Sep 17 00:00:00 2001 From: Davide Laezza Date: Sat, 5 May 2018 10:15:15 +0200 Subject: Setting executable permissions, just in case --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 6a24714..ade7f08 100755 --- a/install.sh +++ b/install.sh @@ -7,3 +7,4 @@ if /usr/bin/env python -V 2>&1 | grep 'Python 2' &> /dev/null; then else cp ./move-to-next-monitor /usr/local/bin/move-to-next-monitor fi +chmod +x /usr/local/bin/move-to-next-monitor -- cgit From ec0e064d2bedc76ef65d90c97079b9e43f3c7550 Mon Sep 17 00:00:00 2001 From: Davide Laezza Date: Tue, 8 May 2018 12:24:50 +0200 Subject: Implementing changes requested in vanaoff/move-to-next-monitor#1 --- install.sh | 7 +------ move-to-next-monitor | 2 +- 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 -- cgit