From ced0980d234e5a0a73c32324ed0114b44530f32c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20V=C3=A1squez=20P=C3=A9rez?= Date: Thu, 13 Dec 2018 10:38:32 -0800 Subject: [PATCH] wraped the variables in quotes in cases there are any spaces in thepath name. --- bash/ghostmirror.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/ghostmirror.sh b/bash/ghostmirror.sh index c7bc168..ee64c37 100755 --- a/bash/ghostmirror.sh +++ b/bash/ghostmirror.sh @@ -1 +1 @@ -find $1/ -type d -exec mkdir -p $2/{} \; -o -type f -exec touch $2/{} \;; +find "$1"/ -type d -exec mkdir -p "$2"/{} \; -o -type f -exec touch "$2"/{} \;;