mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-13 07:10:51 +02:00
fix basename for curl
This commit is contained in:
@@ -49,7 +49,7 @@ chmod o+w /home/wger/media
|
||||
temp_dir=$(mktemp -d)
|
||||
cd $temp_dir
|
||||
RELEASE=$(curl -fsSL https://api.github.com/repos/wger-project/wger/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
|
||||
curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -O $(basename "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz")
|
||||
curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o $(basename"https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz")
|
||||
tar xzf $RELEASE.tar.gz
|
||||
mv wger-$RELEASE /home/wger/src
|
||||
cd /home/wger/src
|
||||
|
||||
Reference in New Issue
Block a user