Skip to content
This repository has been archived by the owner on Mar 28, 2021. It is now read-only.

Commit

Permalink
Check correctness of URL for downloading Wine
Browse files Browse the repository at this point in the history
  • Loading branch information
Kron4ek authored Aug 23, 2020
1 parent dc582e9 commit 496861d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions create_wine_portable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ cd "${script_dir}"/wine-portable/squashfs-root || exit 1
if [ ! -d wine ]; then
if [ ! -d "${script_dir}"/wine ]; then
wget -nv -O wine.tar.xz "${wine_url}" -q --show-progress

if [ $? -ne 0 ]; then
echo "URL for downloading Wine is incorrect!"
echo "Please set wine_url variable to correct URL"
exit 1
fi

tar xf wine.tar.xz
rm wine.tar.xz
mv wine* wine
Expand Down

0 comments on commit 496861d

Please sign in to comment.