3
0
Fork 0

Add script to repack files

This commit is contained in:
Ral 2025-02-22 19:07:08 +01:00
commit 39165e4230
1 changed files with 16 additions and 0 deletions

16
pack.sh Executable file
View File

@ -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" ../;