Skip to content

Commit

Permalink
Uses source command to set env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
WisdomWolf committed Nov 8, 2022
1 parent 120d2e8 commit 0d6f16a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion init-steam-backup-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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 BIN_DIR=$HOME/bin
export BIN_DIR="$HOME/bin"

mkdir -p $BIN_DIR

Expand Down
2 changes: 1 addition & 1 deletion my-steam-backup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

SCRIPT_DIR=$(dirname `readlink -f $0`)
$SCRIPT_DIR/init-steam-backup-vars.sh
source $SCRIPT_DIR/init-steam-backup-vars.sh

cd $STEAM_SAVES_DIR
$BIN_DIR/ludusavi backup --force --path $STEAM_SAVES_DIR/ludusavi-backup
Expand Down
2 changes: 1 addition & 1 deletion steam-backup-setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e
SCRIPT_DIR=$(dirname `readlink -f $0`)
$SCRIPT_DIR/init-steam-backup-vars.sh
source $SCRIPT_DIR/init-steam-backup-vars.sh

cd $BIN_DIR
wget https://github.com/mtkennerly/ludusavi/releases/download/v0.10.0/ludusavi-v0.10.0-linux.zip -O ludusavi-v0.10.0-linux.zip
Expand Down

0 comments on commit 0d6f16a

Please sign in to comment.