Quit quietly when no program specified
This commit is contained in:
parent
ee62b3c91a
commit
55acd85923
5
proxyenv
5
proxyenv
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Just quit queitly when no program specfied
|
||||||
|
if (( "$#" -le 0 )) ; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z "$PROXYENV_CONFPATH" ]] ; then
|
if [[ -z "$PROXYENV_CONFPATH" ]] ; then
|
||||||
if [[ -e "/etc/proxyenv.conf" ]] ; then
|
if [[ -e "/etc/proxyenv.conf" ]] ; then
|
||||||
source "/etc/proxyenv.conf"
|
source "/etc/proxyenv.conf"
|
||||||
|
|
Loading…
Reference in a new issue