Skip to content

Commit

Permalink
Make sure the download script uses the SCRIPT_DIRECTORY (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
brand-it authored Nov 26, 2024
1 parent a52b382 commit 421132d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions bin/update_latest_release
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/bin/bash

# Variables
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO="brand-it/plex_the_ripper"
API_URL="https://api.github.com/repos/$REPO/releases/latest"
DOWNLOAD_URL="https://github.com/$REPO/archive/refs/tags/"
TEMP_DIR="./tmp/latest"
TEMP_DIR="$SCRIPT_DIR/tmp/latest"
GITIGNORE=".gitignore"
VERSION_FILE="./current_version.txt"
RSYNC_EXCLUDE_FILE="./tmp/rsync_exclude"
VERSION_FILE="$SCRIPT_DIR/current_version.txt"
RSYNC_EXCLUDE_FILE="$SCRIPT_DIR/tmp/rsync_exclude"

# Create necessary directories
mkdir -p "$(dirname $TEMP_DIR)"
Expand Down
2 changes: 1 addition & 1 deletion current_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v5.15.0
v5.16.0

0 comments on commit 421132d

Please sign in to comment.