Quit quietly when no program specified

This commit is contained in:
leafee98 2023-09-17 22:05:56 +08:00
parent ee62b3c91a
commit 55acd85923

View file

@ -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"