Major refactor to match my template project

This commit is contained in:
2023-02-23 12:42:28 -06:00
parent 7fcdc950fc
commit 35383a95cb
101 changed files with 1939 additions and 6109 deletions

28
user_config/bin/gwinwrap Executable file
View File

@@ -0,0 +1,28 @@
#!/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=""
if [[ ! "${1::1}" == /* ]]; then
path="${call_path}/${1}"
else
path="${1}"
fi
if [ ! -d "${path}" ]; then
echo "GWinWrap: Path given not a directory..."
exit 1
fi
cd "/opt/"
python ./gwinwrap.zip "${path}"
}
main "$@";