diff options
author | Yizhen Shi <61877973+yizshi@users.noreply.github.com> | 2020-03-31 10:15:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 10:15:04 -0400 |
commit | c6757807d1ff179e76407f7e5669dc05d385cbc0 (patch) | |
tree | e2ec177356b7e061b29584b7c92c5f7d99176e61 | |
parent | 5e2d67998d913eac38086cb04f8c747ddc8e2c1f (diff) | |
download | openvpn-duo-plugin-c6757807d1ff179e76407f7e5669dc05d385cbc0.tar.gz openvpn-duo-plugin-c6757807d1ff179e76407f7e5669dc05d385cbc0.zip |
Let shebang decide which python it should use (#31)
Summary: Added python3 python python2 to shebang
Co-authored-by: Yizhen Shi <yshi@yshi-30932.local>
-rwxr-xr-x | duo_openvpn.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/duo_openvpn.py b/duo_openvpn.py index e1da97a..97f1d09 100755 --- a/duo_openvpn.py +++ b/duo_openvpn.py @@ -1,4 +1,8 @@ -#!/usr/bin/env python +#!/bin/sh +''''which python3 >/dev/null 2>&1 && exec python3 "$0" "$@" # ''' +''''which python >/dev/null 2>&1 && exec python "$0" "$@" # ''' +''''which python2 >/dev/null 2>&1 && exec python2 "$0" "$@" # ''' +''''exec echo "Error: No python module found in system"# ''' # # duo_openvpn.py # Duo OpenVPN |