-
Notifications
You must be signed in to change notification settings - Fork 3
/
init-steam-backup-vars.sh
32 lines (28 loc) · 1.23 KB
/
init-steam-backup-vars.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
set -e
if [ -f "$HOME/steam-bkuper.env" ]; then
export $(grep -v '^#' ~/steam-bkuper.env | xargs)
fi
export BIN_DIR="$HOME/bin"
mkdir -p $BIN_DIR
export STEAM_BKUPER_DIR="${STEAM_BKUPER_DIR:-$HOME/.local/share/steam-bkuper}"
export STEAM_SAVES_DIR="${STEAM_SAVES_DIR:-$HOME/.local/share/steam-saves}"
export STEAM_BKUPER_REPO="${STEAM_BKUPER_REPO:-'https://github.com/AngeIo/steam-bkuper'}"
export STEAM_SAVES_REPO="${STEAM_SAVES_REPO:?}"
export STEAM_PATH="${STEAM_PATH:-'/home/deck/.local/share/Steam/userdata'}"
export STEAM_LOPTS="${STEAM_LOPTS:-%command%;$BIN_DIR/my-steam-backup.sh}"
export LUDUSAVI_VER="${LUDUSAVI_VER:-v0.22.0}"
export LUDUSAVI_FILE="${LUDUSAVI_FILE:-ludusavi-$LUDUSAVI_VER-linux.zip}"
# Uncomment for debugging
# echo "STEAM_BKUPER_DIR = $STEAM_BKUPER_DIR"
# echo "STEAM_SAVES_DIR = $STEAM_SAVES_DIR"
# echo "STEAM_BKUPER_REPO = $STEAM_BKUPER_REPO"
# echo "STEAM_SAVES_REPO = $STEAM_SAVES_REPO"
# echo "STEAM_SAVES_REPO2 = $STEAM_SAVES_REPO2"
# echo "STEAM_PATH = $STEAM_PATH"
# echo "STEAM_ACCOUNTID = $STEAM_ACCOUNTID"
# echo "BIN_DIR = $BIN_DIR"
# echo "STEAM_LOPTS = $STEAM_LOPTS"
# echo "STEAM_LAST_LOPTS = $STEAM_LAST_LOPTS"
# echo "LUDUSAVI_VER = $LUDUSAVI_VER"
# echo "LUDUSAVI_FILE = $LUDUSAVI_FILE"