From 366af8d51e18bffad49728cc5ea18e60fe58d066 Mon Sep 17 00:00:00 2001 From: MrWhiskey <8661186+tiberiumboy@users.noreply.github.com> Date: Sun, 22 Mar 2026 20:42:55 +0000 Subject: [PATCH] Remove unused variable, install uv instead of suggest Removed unused variable usage. Install UV instead of error message. Let UV throws an error if UV cannot be installed on target machine. Since the user wants to run the program, we shouldn't have to stop the program and ask them to install uv. We should try and install uv in this launcher before we run the program. (Hard requirements) --- CorridorKey_DRAG_CLIPS_HERE_local.sh | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/CorridorKey_DRAG_CLIPS_HERE_local.sh b/CorridorKey_DRAG_CLIPS_HERE_local.sh index 75ba1967..988fa672 100755 --- a/CorridorKey_DRAG_CLIPS_HERE_local.sh +++ b/CorridorKey_DRAG_CLIPS_HERE_local.sh @@ -3,10 +3,6 @@ cd "$(dirname "$0")" -# Get the directory where this script is located -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" -LOCAL_SCRIPT="$SCRIPT_DIR/corridorkey_cli.py" - # SAFETY CHECK: Ensure a folder was provided as an argument if [ -z "$1" ]; then echo "[ERROR] No target folder provided." @@ -28,16 +24,9 @@ TARGET_PATH="$1" # Strip trailing slash if present TARGET_PATH="${TARGET_PATH%/}" -# Ensure uv is available before attempting to run +# Install uv before running if ! command -v uv &> /dev/null; then - echo "[ERROR] 'uv' is not installed or not on PATH." - echo "" - echo "Install uv by running:" - echo " curl -LsSf https://astral.sh/uv/install.sh | sh" - echo "" - echo "Then reopen your terminal and try again." - read -p "Press enter to exit..." - exit 1 + curl -LsSf https://astral.sh/uv/install.sh | sh fi echo "Starting Corridor Key locally..."