From 39165e4230314ab60b9041bf489f0201d90c9caf Mon Sep 17 00:00:00 2001 From: Ral <> Date: Sat, 22 Feb 2025 19:07:08 +0100 Subject: [PATCH] Add script to repack files --- pack.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 pack.sh diff --git a/pack.sh b/pack.sh new file mode 100755 index 0000000..4ddd4e2 --- /dev/null +++ b/pack.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -o errexit -o nounset -o pipefail + +IFS=$'\n' + +profilepath=$(readlink -f "${1}"); + +dirpath=$(dirname "${profilepath}"); + +profilename=$(basename "${dirpath}"); + +cd "${dirpath}"; + +zip "${profilename}.streamDeckProfile" -r .; + +mv "${profilename}.streamDeckProfile" ../;