LSP_Manager/user_config/bin/lsp-manager

26 lines
518 B
Plaintext
Raw Permalink Normal View History

2024-09-04 05:43:59 +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`
path=""
# Collect abs paths and stuff in 'files' array
files=()
for f in "$@"; do
target=$(readlink -f "${f}")
i="${#files[@]}"
size=$(($i + 1))
files[$size]="${target}"
done
cd "/opt/"
2024-09-04 05:59:52 +00:00
python /opt/lsp-manager.zip "$@"
2024-09-04 05:43:59 +00:00
}
main "$@";