2022-07-07 04:19:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# . CONFIG.sh
|
|
|
|
|
|
|
|
# set -o xtrace ## To debug scripts
|
|
|
|
# set -o errexit ## To exit on error
|
|
|
|
# set -o errunset ## To exit if a variable is referenced but not set
|
|
|
|
|
|
|
|
|
|
|
|
function main() {
|
2023-02-24 05:03:29 +00:00
|
|
|
call_path=`pwd`
|
|
|
|
cd "${call_path}"
|
2022-07-07 04:19:41 +00:00
|
|
|
echo "Working Dir: " $(pwd)
|
|
|
|
|
2023-11-12 06:49:16 +00:00
|
|
|
files=()
|
|
|
|
for f in "$@"; do
|
|
|
|
target=$(readlink -f "${f}")
|
|
|
|
i="${#files[@]}"
|
|
|
|
size=$(($i + 1))
|
|
|
|
files[$size]="${target}"
|
|
|
|
done
|
|
|
|
|
|
|
|
python /opt/solarfm.zip "${files[@]}"
|
2022-07-07 04:19:41 +00:00
|
|
|
}
|
|
|
|
main "$@";
|