determine directory of overlay files by name rather than by slash

pull/809/head
Paul Philippov 2023-05-19 20:43:35 -04:00
parent 31ef77268f
commit 39afc91713
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ function apply_patch() {
SRC=$2 SRC=$2
if [[ -d $SRC ]]; then if [[ -d $SRC ]]; then
if [[ ${SRC:${#SRC}-1} != '/' ]]; then if [[ "overlay" == $(basename "$SRC") ]]; then
log Apply \"$SRC\" as overlay directory log Apply \"$SRC\" as overlay directory
cp -r $SRC/* $DST/ cp -r $SRC/* $DST/
else else