Skip to content

Commit

Permalink
Fixed sourcing
Browse files Browse the repository at this point in the history
  • Loading branch information
gvatsal60 committed May 12, 2024
1 parent b7a3fda commit 69330e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ check_sourcing() {
# Check if .aliases.sh is sourced in specified rc file, if not append it
if ! grep -qxF "source \"${HOME}/.aliases.sh\"" "$HOME/$1"; then
printf "\n# Sourcing custom aliases" >>"${HOME}/$1"
echo "source \"\${HOME}/.aliases.sh\"" >>"${HOME}/$1"
echo "source \"${HOME}/.aliases.sh\"" >>"${HOME}/$1"
fi

if [ -r "${HOME}/$1" ]; then
Expand Down

0 comments on commit 69330e4

Please sign in to comment.