mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-12-28 17:48:52 +01:00
69d3f7dc64
* added sudoers options to command line arguments * added sudoers options to command line arguments * template for sudoers file * Added option for GUI sudo * added support for GUI sudo * script for auto adding sudo file * sudoers auto add works and validates * small change * Clean up for CI * removed code that belongs in another PR * added path for package bins * added sudoers bin * added sudoers-add to setup file * fixed issue with sudoers bash script * auto sudoers now works * added --sudoers-no-modify option * bin now works with ./run * removed debug print * Updated sudoers-add script * Fixed error passing sudoers config to script * more dynamic building of sudoers file * added option to specify sudoers.d file name * fixed indent issue * fixed indent issue * indent issue * clean up * formating * docs * fix for flags * Update usage.rst * removed shell=true * cleared CI errors * cleared CI errors * removed random * cleared linter issue * cleared linter issue * cleared linter issue * updated sudoers-add script * safer temp file * moved bin directory * moved bin directory * removed print * fixed spacing issue * sudoers commands must only containe upper case latters
18 lines
417 B
Bash
Executable File
18 lines
417 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -e
|
|
export PYTHONPATH="$(dirname $0):$PYTHONPATH"
|
|
export PATH="$(dirname $0)/bin:$PATH"
|
|
|
|
python_best_version() {
|
|
if [ -x "$(command -v python3)" ] &&
|
|
python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then
|
|
exec python3 "$@"
|
|
elif [ -x "$(command -v python2.7)" ]; then
|
|
exec python2.7 "$@"
|
|
else
|
|
exec python "$@"
|
|
fi
|
|
}
|
|
|
|
python_best_version -m "sshuttle" "$@"
|