From ab5afeb57a219030e5811113adb4f804ba89d636 Mon Sep 17 00:00:00 2001 From: Fincer Date: Fri, 17 Mar 2017 23:29:58 +0200 Subject: [PATCH] Wine POL script: Add if statement --- wine/1-install_wine-to-pol.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wine/1-install_wine-to-pol.sh b/wine/1-install_wine-to-pol.sh index 6fcb2c5..d9ec51f 100644 --- a/wine/1-install_wine-to-pol.sh +++ b/wine/1-install_wine-to-pol.sh @@ -4,11 +4,13 @@ updpkgsums makepkg +if [[ $(find ./ -type f -iname "*.tar.xz" | wc -l) -eq 1 ]]; then #Install compiled Wine files to their corresponding places in PlayOnLinux installation. -bash -c ./playonlinux-script/install-to-pol.sh - + bash -c ./playonlinux-script/install-to-pol.sh +fi + #Remove deprecated src & pkg folders -rm -R ./{src,pkg} +rm -fR ./{src,pkg} #Compiled tar.xz package is not "compatible" or as good as the Wine package compiled with the original PKGBUILD rules. Thus, we remove the created tar.xz file. rm ./*.tar.xz