Skip to content

Commit

Permalink
Corrects .env loading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WisdomWolf committed Nov 8, 2022
1 parent 6c9f3c2 commit 935f6ba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init-steam-backup-vars.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

if [ -d "~/steam-backup.env" ];then
if [ -f "$HOME/steam-backup.env" ];then
export $(grep -v '^#' ~/steam-backup.env | xargs)
fi

Expand All @@ -18,4 +18,5 @@ mkdir -p $BIN_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 "BIN_DIR = $BIN_DIR"
Empty file modified my-steam-backup.sh
100644 → 100755
Empty file.
Empty file modified steam-backup-setup.sh
100644 → 100755
Empty file.

0 comments on commit 935f6ba

Please sign in to comment.