1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 21:32:36 +01:00

Set Steam Deck staging dir sooner

This commit is contained in:
aclist 2022-10-08 14:34:33 +09:00
parent 01b2c12a6f
commit 091efd1a59
2 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash
set -o pipefail
version=2.8.0-rc.11
version=2.8.0-rc.12
aid=221100
game="dayz"

View file

@ -66,8 +66,6 @@ move_files(){
#}
test_dir(){
if [[ $dist == "steamos" ]]; then
staging_dir="$HOME/.local/share/dzgui/mods"
mkdir -p $staging_dir
return 0
fi
sudo -u steam test -w "$staging_dir"
@ -217,7 +215,7 @@ deck_install(){
pacman -Qi lib32-gcc-libs 2>/dev/null 1>&2
rc=$?
[[ ! $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"
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
@ -313,6 +311,10 @@ abort(){
exit
}
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)
disk_bytewise=$((disksize * 1024))
hr=$(echo $(numfmt --to=iec --format "%.2f" $totalmodsize $disk_bytewise) | sed 's/ /\//')