1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-01-18 16:07:59 +00:00

do not use id command

This commit is contained in:
Nebel 2022-06-11 02:06:00 +09:00 committed by GitHub
parent 5cb505988e
commit bf82cc8f21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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