Fix directory does not exist

This commit is contained in:
Sayantan Santra 2023-03-06 10:16:06 -06:00
parent e5b6e078dc
commit 520a098f8a

View file

@ -1,6 +1,6 @@
name='vuetorrent' name='vuetorrent'
version=VERSION version=VERSION
release=2 release=3
desc='The sleekest looking WEBUI for qBittorrent made with Vuejs!' desc='The sleekest looking WEBUI for qBittorrent made with Vuejs!'
homepage='https://github.com/WDaan/VueTorrent' homepage='https://github.com/WDaan/VueTorrent'
architectures=('amd64') architectures=('amd64')
@ -22,6 +22,7 @@ package() {
echo "Pulling ${name} ${version}" echo "Pulling ${name} ${version}"
curl -L "https://github.com/${git_repo}/releases/latest/download/${name}.zip" -o ${name}.zip curl -L "https://github.com/${git_repo}/releases/latest/download/${name}.zip" -o ${name}.zip
# Unzip and install # Unzip and install
mkdir -p "${pkgdir}/opt/${name}"
unzip vuetorrent.zip -d "${pkgdir}/opt/${name}" unzip vuetorrent.zip -d "${pkgdir}/opt/${name}"
# Print usage instructions # Print usage instructions
echo "Make sure to choose /opt/vuetorrent as the location of the custom WebUI in qBittorrent settings." echo "Make sure to choose /opt/vuetorrent as the location of the custom WebUI in qBittorrent settings."