mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
Set Steam Deck staging dir sooner
This commit is contained in:
parent
01b2c12a6f
commit
091efd1a59
2 changed files with 6 additions and 4 deletions
2
dzgui.sh
2
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=2.8.0-rc.11
|
version=2.8.0-rc.12
|
||||||
|
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
|
|
@ -66,8 +66,6 @@ move_files(){
|
||||||
#}
|
#}
|
||||||
test_dir(){
|
test_dir(){
|
||||||
if [[ $dist == "steamos" ]]; then
|
if [[ $dist == "steamos" ]]; then
|
||||||
staging_dir="$HOME/.local/share/dzgui/mods"
|
|
||||||
mkdir -p $staging_dir
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
sudo -u steam test -w "$staging_dir"
|
sudo -u steam test -w "$staging_dir"
|
||||||
|
@ -217,7 +215,7 @@ deck_install(){
|
||||||
pacman -Qi lib32-gcc-libs 2>/dev/null 1>&2
|
pacman -Qi lib32-gcc-libs 2>/dev/null 1>&2
|
||||||
rc=$?
|
rc=$?
|
||||||
[[ ! $rc -eq 0 ]] && return 1
|
[[ ! $rc -eq 0 ]] && return 1
|
||||||
if [[ ! -f $HOME/.local/share/dzgui/helpers/steamcmd ]]; then
|
if [[ ! -f $HOME/.local/share/dzgui/helpers/steamcmd/steamcmd.sh ]]; then
|
||||||
local tarball="steamcmd_linux.tar.gz"
|
local tarball="steamcmd_linux.tar.gz"
|
||||||
mkdir -p $HOME/.local/share/dzgui/helpers/steamcmd
|
mkdir -p $HOME/.local/share/dzgui/helpers/steamcmd
|
||||||
curl -Ls "https://steamcdn-a.akamaihd.net/client/installer/$tarball" > $HOME/.local/share/dzgui/helpers/steamcmd/$tarball
|
curl -Ls "https://steamcdn-a.akamaihd.net/client/installer/$tarball" > $HOME/.local/share/dzgui/helpers/steamcmd/$tarball
|
||||||
|
@ -313,6 +311,10 @@ abort(){
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
check_disks(){
|
check_disks(){
|
||||||
|
if [[ $dist == "steamos" ]]; then
|
||||||
|
staging_dir="$HOME/.local/share/dzgui/mods"
|
||||||
|
mkdir -p $staging_dir
|
||||||
|
fi
|
||||||
disksize=$(df $staging_dir --output=avail | tail -n1)
|
disksize=$(df $staging_dir --output=avail | tail -n1)
|
||||||
disk_bytewise=$((disksize * 1024))
|
disk_bytewise=$((disksize * 1024))
|
||||||
hr=$(echo $(numfmt --to=iec --format "%.2f" $totalmodsize $disk_bytewise) | sed 's/ /\//')
|
hr=$(echo $(numfmt --to=iec --format "%.2f" $totalmodsize $disk_bytewise) | sed 's/ /\//')
|
||||||
|
|
Loading…
Reference in a new issue