mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
Fix env bug with GO variables
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ done
|
||||
|
||||
if [[ $# -gt 0 ]]
|
||||
then
|
||||
eval sudo "${sudo_args[@]}" /usr/bin/env $(/usr/bin/env | grep -E '^GVM|^PATH' | sed 's/=\(.*\)$/="\1"/' ) "$@"
|
||||
eval sudo "${sudo_args[@]}" /usr/bin/env $(/usr/bin/env | grep -E '^GO|^GVM|^PATH' | sed 's/=\(.*\)$/="\1"/' ) "$@"
|
||||
else
|
||||
printf "Usage:\n $0 [--trace] [--verbose] [sudo-options] command [command-options]\n"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user