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:
parent
5cb505988e
commit
bf82cc8f21
1 changed files with 1 additions and 1 deletions
2
install
2
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue