]> git.sev.monster Git - dotfiles.git/commitdiff
zshenv: fix fallback tmpdir substitution
authorsev <git@sev.monster>
Fri, 30 Aug 2024 11:24:58 +0000 (06:24 -0500)
committersev <git@sev.monster>
Fri, 30 Aug 2024 11:24:58 +0000 (06:24 -0500)
etc/zsh/.zshenv

index 69ac9bc3fa8bea394a4cc83409aeeb9e04a84507..1ec57d7b55ff741539298a5c8337980d6cc26eef 100644 (file)
@@ -168,7 +168,7 @@ if [[ ! -v _sev_tmp ]] {
         [[ -h $_sev_tmp && ! -d _sev_tmp ]] && unlink $_sev_tmp 2>/dev/null
         [[ ! -e $_sev_tmp ]] && mkdir -m700 $_sev_tmp 2>/dev/null
         if [[ ! -d $_sev_tmp ]] {
-            _sev_tmp=${$(mktemp 2>/dev/null):/tmp}
+            _sev_tmp=${$(mktemp 2>/dev/null):-/tmp}
             [[ -o interactive ]] &&
               print -P "%F{red}!!! Can't create tmp dir, using $_sev_tmp%f"
         }
This page took 0.035059 seconds and 4 git commands to generate.