Skip to content

Commit

Permalink
Added missing log output to add_line_if_missing()
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Jul 15, 2024
1 parent 42ef892 commit b7330d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions InstallControllerBuddy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ fi
function add_line_if_missing() {
if [ ! -f "$1" ] || ! grep -qxF "$2" "$1"
then
log "Adding missing line '$2' to file '$1'..."
check_sudo_privileges
echo "$2" | sudo tee -a "$1"
check_retval "Error: Failed to write $1"
Expand Down

0 comments on commit b7330d2

Please sign in to comment.