diff options
author | Davide Laezza <truzzialrogo@gmx.com> | 2018-05-05 10:13:44 +0200 |
---|---|---|
committer | Davide Laezza <truzzialrogo@gmx.com> | 2018-05-05 10:13:44 +0200 |
commit | 62ae37a2fe91232fb6855b48e65f609fff8b448d (patch) | |
tree | 328f588ce44cb7f612c5d7ce0007c7c74635821a | |
parent | /bin/env has been moved to /usr/bin/env, as in the installation script (diff) | |
download | move-to-next-monitor-62ae37a2fe91232fb6855b48e65f609fff8b448d.tar.gz move-to-next-monitor-62ae37a2fe91232fb6855b48e65f609fff8b448d.tar.bz2 move-to-next-monitor-62ae37a2fe91232fb6855b48e65f609fff8b448d.zip |
Added python2 fix
-rwxr-xr-x | install.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |