install: don't export script variables

These variables are only used be the script itself and don't need to be
exposed via the environment to any subcommands or subshells.
This commit is contained in:
Fernando Schauenburg 2021-11-22 09:13:02 +01:00
parent 8d6ccad8f7
commit 2630868158

View file

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
set -e set -e
export DOTFILES="$(dirname "$(realpath "$0")")" DOTFILES="$(dirname "$(realpath "$0")")"
export DEFAULT_GIT_USER="Fernando Schauenburg" DEFAULT_GIT_USER="Fernando Schauenburg"
export DEFAULT_GIT_EMAIL="fernando@schauenburg.me" DEFAULT_GIT_EMAIL="fernando@schauenburg.me"
[ -f "$DOTFILES/config" ] && . "$DOTFILES/config" [ -f "$DOTFILES/config" ] && . "$DOTFILES/config"