script optimized
This commit is contained in:
parent
a86c427966
commit
8abcaf8e77
|
@ -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"
|
||||||
show_message "prefix configured..."
|
if [ $? -eq 0 ];then
|
||||||
sleep 5
|
show_message "prefix configured..."
|
||||||
|
sleep 5
|
||||||
#add necessary dlls
|
else
|
||||||
append_DLL
|
error "prefix config failed :("
|
||||||
|
fi
|
||||||
#add dark mod
|
|
||||||
set_dark_mod
|
|
||||||
|
|
||||||
|
if [ -f "$WINE_PREFIX/user.reg" ];then
|
||||||
|
#add necessary dlls
|
||||||
|
append_DLL
|
||||||
|
sleep 4
|
||||||
|
#add 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(){
|
||||||
|
|
Loading…
Reference in New Issue