tinyGuiUpdate , Updating script v1 finnished
This commit is contained in:
18
jibo_updater.sh
Executable file
18
jibo_updater.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Wrapper for jibo_updater.py
|
||||
# Prefers the repo-local venv if it exists.
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
PY="$SCRIPT_DIR/.venv/bin/python"
|
||||
if [[ -x "$PY" ]]; then
|
||||
exec "$PY" "$SCRIPT_DIR/jibo_updater.py" "$@"
|
||||
fi
|
||||
|
||||
if command -v python3 >/dev/null 2>&1; then
|
||||
exec python3 "$SCRIPT_DIR/jibo_updater.py" "$@"
|
||||
fi
|
||||
|
||||
exec python "$SCRIPT_DIR/jibo_updater.py" "$@"
|
||||
Reference in New Issue
Block a user