feat(bash): var TMPDIR

This commit is contained in:
thek4n 2023-11-30 13:58:43 +03:00
parent c336a24cae
commit 4c04649e21
2 changed files with 10 additions and 6 deletions

View File

@ -34,3 +34,10 @@ fi
if [ -d "$HOME/.go" ] ; then
export GOPATH="$HOME/.go"
fi
for TMPDIR in "$TMPDIR" "$TMP" /tmp /var/tmp
do
test -d "$TMPDIR" && break
done
export TMPDIR

View File

@ -3,13 +3,10 @@
set -ueo pipefail
shopt -s nullglob
declare TARGET_PATH DOTFILES_ROOT SUB
declare -r TARGET_PATH="$HOME"
declare -r DOTFILES_ROOT="$PWD"
declare -r SUB="$DOTFILES_ROOT/home/user"
TARGET_PATH="$HOME"
DOTFILES_ROOT="$(pwd)"
SUB="$DOTFILES_ROOT/home/user"
readonly TARGET_PATH DOTFILES_ROOT SUB
export SUB