:Corrected dest dir creation bug with doc-cp
The modification that created this bug was clearly not tested.master
parent
3ec175ef0c
commit
c336800ca4
|
@ -30,7 +30,8 @@ sstrip()
|
|||
}
|
||||
|
||||
# ensure that parent directory exists
|
||||
mkdir -p "${dest%/*}"
|
||||
dir="${2%/*}"
|
||||
[ -z "$dir" ] || mkdir -p "$dir"
|
||||
|
||||
dest="$( sstrip "$2" )"
|
||||
cp -v "$1" "$dest"
|
||||
|
|
Loading…
Reference in New Issue