initial push
This commit is contained in:
26
user_config/bin/lsp-manager
Executable file
26
user_config/bin/lsp-manager
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/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/"
|
||||
python /opt/lsp-manager.zip "$@"
|
||||
}
|
||||
main "$@";
|
Reference in New Issue
Block a user