Skip to content

Commit

Permalink
fix: script functions error
Browse files Browse the repository at this point in the history
  • Loading branch information
pryter committed Aug 18, 2024
1 parent 9382891 commit d7050c0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
36 changes: 15 additions & 21 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ createApplicationConfig() {
sed -e "s/YT_VER/${YT_PLUGIN_VERSION}/g" -e "s/_PASSWORD_/$answer/g" $TEMPLATE > application.yml
}

downloadLavalink () {
echo "Downloading compatible lavalink (${LAVALINK_VERSION})"
mkdir lavalink
wget -O lavalink/Lavalink.jar "https://github.com/lavalink-devs/Lavalink/releases/download/${LAVALINK_VERSION}/Lavalink.jar"
echo "${LAVALINK_VERSION}" > lavalink/version.txt
chmod +x lavalink/Lavalink.jar
}

if [ -f "lavalink/Lavalink.jar" ]
then
if [ "${LAVALINK_VERSION}" != "$(cat lavalink/version.txt)" ] ;then
Expand All @@ -26,11 +34,3 @@ createApplicationConfig

echo "Successfully setup lavalink deps."
echo "Try yarn lavalink to start the server."

downloadLavalink () {
echo "Downloading compatible lavalink (${LAVALINK_VERSION})"
mkdir lavalink
wget -O lavalink/Lavalink.jar "https://github.com/lavalink-devs/Lavalink/releases/download/${LAVALINK_VERSION}/Lavalink.jar"
echo "${LAVALINK_VERSION}" > lavalink/version.txt
chmod +x lavalink/Lavalink.jar
}

0 comments on commit d7050c0

Please sign in to comment.