瀏覽代碼

rootfs: fix USE_APK detection

Due to missing quotes the script would wrongly assume APK to be enabled
and don't run post install scripts, breaking pretty much everything.

Signed-off-by: Paul Spooren <[email protected]>
Paul Spooren 1 年之前
父節點
當前提交
52a225cba4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/rootfs.mk

+ 1 - 1
include/rootfs.mk

@@ -78,7 +78,7 @@ define prepare_rootfs
 	@mkdir -p $(1)/var/lock
 	@( \
 		cd $(1); \
-		if [ -n $(CONFIG_USE_APK) ]; then \
+		if [ -n "$(CONFIG_USE_APK)" ]; then \
 		$(STAGING_DIR_HOST)/bin/tar -xf ./lib/apk/db/scripts.tar --wildcards "*.post-install" -O > script.sh; \
 		chmod +x script.sh; \
 		IPKG_INSTROOT=$(1) $$(command -v bash) script.sh; \