script optimized

This commit is contained in:
victor 2020-02-11 22:40:30 +03:30
bovenliggende a86c427966
commit 8abcaf8e77
1 gewijzigde bestanden met toevoegingen van 16 en 10 verwijderingen

Bestand weergeven

@ -38,15 +38,22 @@ main(){
echo -e "\033[1;93mplease allow mono and gecko packages to be installed automatically\e[0m" echo -e "\033[1;93mplease allow mono and gecko packages to be installed automatically\e[0m"
echo -e "\033[1;93mif they're not already installed then click on OK button\e[0m" echo -e "\033[1;93mif they're not already installed then click on OK button\e[0m"
winecfg 2> "$SCR_PATH/wine-error.log" winecfg 2> "$SCR_PATH/wine-error.log"
if [ $? -eq 0 ];then
show_message "prefix configured..." show_message "prefix configured..."
sleep 5 sleep 5
else
error "prefix config failed :("
fi
if [ -f "$WINE_PREFIX/user.reg" ];then
#add necessary dlls #add necessary dlls
append_DLL append_DLL
sleep 4
#add dark mod #add dark mod
set_dark_mod set_dark_mod
else
error "user.reg Not Found :("
fi
} }
@ -110,7 +117,6 @@ set_dark_mod(){
echo "$i" >> "$WINE_PREFIX/user.reg" echo "$i" >> "$WINE_PREFIX/user.reg"
done done
show_message "set dark mode for wine..." show_message "set dark mode for wine..."
sleep 3
unset colorarray unset colorarray
} }
@ -150,7 +156,7 @@ append_DLL(){
for i in ${dllarray[@]};do for i in ${dllarray[@]};do
echo "$i" >> "$WINE_PREFIX/user.reg" echo "$i" >> "$WINE_PREFIX/user.reg"
done done
sleep 4 unset dllarray
} }
export_var(){ export_var(){