From e47ef6b69ab50c089fa58de378aae078fb37c994 Mon Sep 17 00:00:00 2001
From: Elliu <elliu@hashi.re>
Date: Wed, 10 Jan 2024 22:50:24 +0900
Subject: [PATCH] Create the packs/ directory on install if the selected
 stickerpicker repo didn't have it already

---
 stpkg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/stpkg b/stpkg
index ae9b975..64e188e 100755
--- a/stpkg
+++ b/stpkg
@@ -357,6 +357,7 @@ EOF
         || die "Failed to git clone the stickerpicker project. Your config file ($STPKG_CONF_FILE) is probably corrupted, you should clean it by hand"
 
     cd $STPKG_INSTALL/   || die "Failed to cd to '$STPKG_INSTALL/'"
+    mkdir -p packs       || die "Failed to create 'packs' directory"
     cp packs/* web/packs || die "Failed to copy default packs to '$STPKG_INSTALL/web/packs/'"
 
     default_index > $STPKG_INSTALL/web/packs/index.json || die "Failed to create default index.json file"
-- 
GitLab