Handle the paths in a way theat the resulting directory is relative to the last directory in the path instead of using the full path.
This commit is contained in:
+5
-1
@@ -1 +1,5 @@
|
|||||||
find "$1"/ -type d -exec mkdir -p "$2"/{} \; -o -type f -exec touch "$2"/{} \;;
|
orig_dir=$(pwd)
|
||||||
|
path=$(dirname $1)
|
||||||
|
dirname=$(basename $1)
|
||||||
|
cd $path;
|
||||||
|
find "$dirname"/ -type d -exec mkdir -p "$2"/{} \; -o -type f -exec touch "$2"/{} \;;
|
||||||
|
|||||||
Reference in New Issue
Block a user