Fix missing slash

This commit is contained in:
Augusto Gunsch 2021-08-22 18:52:03 -03:00
parent ca56b27b9e
commit 3532384224
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}"
mkdir -p "$to/.${dir#home/}"
for f in $dir/*; do
if [ -d "$f" ]; then
clone_dir "$f" "$to"