From bf82cc8f21dda6182f345917b71ea1805a5a4bfb Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 11 Jun 2022 02:06:00 +0900 Subject: [PATCH] do not use id command --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index cf71eea..fba6990 100755 --- a/install +++ b/install @@ -5,7 +5,7 @@ cd -- "$(dirname -- "$0")" function install_dotfiles() { local home local dotfile - home=$(eval echo ~"${SUDO_USER:-$(id -un)}") + home=$(eval echo ~"${SUDO_USER:-}") for dotfile in .*; do [[ $dotfile =~ ^(\.\.?|\.git)$ ]] && continue