17 lines
282 B
Bash
Executable File
17 lines
282 B
Bash
Executable File
#!/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" ../;
|