Add script to repack files
This commit is contained in:
commit
39165e4230
|
@ -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" ../;
|
Loading…
Reference in New Issue