Compare commits

..

2 commits

Author SHA1 Message Date
leafee98 55acd85923 Quit quietly when no program specified 2023-09-17 22:06:25 +08:00
leafee98 ee62b3c91a Modify README 2023-09-17 22:05:42 +08:00
2 changed files with 6 additions and 1 deletions

View file

@ -28,7 +28,7 @@ read the proxy actually to be used. Otherwise `/etc/proxyenv.conf` will be used.
The configuration file (default `/etc/proxyenv.conf`) will be sourced when proxyenv run, The configuration file (default `/etc/proxyenv.conf`) will be sourced when proxyenv run,
so take care no let this file's permission to open, 755 is suggested. so take care no let this file's permission to open, 755 is suggested.
For entry detail of configuration file, see [proxyenv.conf](/proxyenv.conf) in this repository. For entry detail of configuration file, see `proxyenv.conf` in this repository.
## Misc ## Misc

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"