29 lines
604 B
Bash
Executable File
29 lines
604 B
Bash
Executable File
#!/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() {
|
|
call_path=`pwd`
|
|
cd "${call_path}"
|
|
echo "Working Dir: " $(pwd)
|
|
|
|
files=()
|
|
for f in "$@"; do
|
|
target=$(readlink -f "${f}")
|
|
i="${#files[@]}"
|
|
size=$(($i + 1))
|
|
files[$size]="${target}"
|
|
done
|
|
|
|
export G_SLICE=always-malloc
|
|
export G_DEBUG=gc-friendly
|
|
export GOBJECT_DEBUG=instance-count
|
|
python /opt/solarfm.zip "${files[@]}"
|
|
}
|
|
main "$@";
|