From 39afc91713984880a9dccfa96d2af8871f88ede5 Mon Sep 17 00:00:00 2001 From: Paul Philippov Date: Fri, 19 May 2023 20:43:35 -0400 Subject: [PATCH] determine directory of overlay files by name rather than by slash --- general/package/vendor-patcher/apply.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general/package/vendor-patcher/apply.sh b/general/package/vendor-patcher/apply.sh index 02e1af95..c1c9d815 100755 --- a/general/package/vendor-patcher/apply.sh +++ b/general/package/vendor-patcher/apply.sh @@ -9,7 +9,7 @@ function apply_patch() { SRC=$2 if [[ -d $SRC ]]; then - if [[ ${SRC:${#SRC}-1} != '/' ]]; then + if [[ "overlay" == $(basename "$SRC") ]]; then log Apply \"$SRC\" as overlay directory cp -r $SRC/* $DST/ else