Skip to content

Commit

Permalink
adds .env file handling
Browse files Browse the repository at this point in the history
  • Loading branch information
WisdomWolf committed Nov 8, 2022
1 parent debc394 commit 124d9a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init-steam-backup-vars.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

if [ -d ".env" ];then
export $(grep -v '^#' .env | xargs)
fi

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'}"
Expand Down

0 comments on commit 124d9a6

Please sign in to comment.