Newton_Editor/user_config/bin/newton

25 lines
460 B
Plaintext
Raw Normal View History

2024-03-20 03:20:35 +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() {
call_path=`pwd`
files=()
for f in "$@"; do
target=$(readlink -f "${f}")
i="${#files[@]}"
size=$(($i + 1))
files[$size]="${target}"
done
cd "/opt/"
python /opt/newton.zip "${files[@]}"
}
main "$@";