Skip to content

Commit

Permalink
Add user bin directories and snap bin to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
pothi committed Dec 7, 2022
1 parent b8f1b1c commit 3d81a15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ exec 2> >(tee -a ${log_file} >&2)

echo "Script started on... $(date +%c)"

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin
export PATH=~/bin:~/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

declare -r script_name=$(basename "$0")
declare -r timestamp=$(date +%F_%H-%M-%S)
Expand Down
2 changes: 1 addition & 1 deletion files-backup-without-uploads.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ log_file=${HOME}/log/backups.log
exec > >(tee -a ${log_file} )
exec 2> >(tee -a ${log_file} >&2)

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin
export PATH=~/bin:~/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

declare -r script_name=$(basename "$0")
declare -r timestamp=$(date +%F_%H-%M-%S)
Expand Down
2 changes: 2 additions & 0 deletions full-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ log_file=${HOME}/log/backups.log
exec > >(tee -a ${log_file} )
exec 2> >(tee -a ${log_file} >&2)

export PATH=~/bin:~/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

declare -r timestamp=$(date +%F_%H-%M-%S)
declare -r script_name=$(basename "$0")
declare -r aws_cli=$(which aws)
Expand Down

0 comments on commit 3d81a15

Please sign in to comment.