Fix missing ~/ case

This commit is contained in:
Augusto Gunsch 2021-08-22 19:02:00 -03:00
parent 3532384224
commit d66dafdeeb
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ clone_dir() {
local dir=${1:-home}
local to=${2:-$HOME}
mkdir -p "$to/.${dir#home/}"
[ "$dir" != "home" ] && mkdir -p "$to/.${dir#home/}"
for f in $dir/*; do
if [ -d "$f" ]; then
clone_dir "$f" "$to"