From d028c01296f2b7000bffc888de5e6f2b31599a3c Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 21 Oct 2019 13:25:13 +0200 Subject: [PATCH] Protect command from unwanted args --- zshenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshenv b/zshenv index d6c99e8..3578ac0 100644 --- a/zshenv +++ b/zshenv @@ -93,5 +93,5 @@ fi # Tmux if [ $(command -v tmux) ]; then export TMUX_TMPDIR=~/.tmux/socks/ - [ ! -d "${TMUX_TMPDIR}" ] && mkdir -p "${TMUX_TMPDIR}" || chmod 0700 "${TMUX_TMPDIR}" + [ ! -d "${TMUX_TMPDIR}" ] && mkdir -p -- "${TMUX_TMPDIR}" || chmod 0700 -- "${TMUX_TMPDIR}" fi