Skip to content

Commit

Permalink
update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Jun 23, 2023
1 parent e29f42f commit 2489b21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libraries/util.bash
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,15 @@ function resetLogs()
done
}

function sortUniqueFile()
{
local -r filePath="${1}"

checkExistFile "${filePath}"

printf '%s' "$(awk 'NF' "${filePath}" | sort -u)" > "${filePath}"
}

function sortUniqueTrimFile()
{
local -r filePath="${1}"
Expand Down
1 change: 1 addition & 0 deletions roles/nam/roles/mac-cli-apps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function main()
'kubernetes-cli'
'maven'
'minikube'
'mongosh'
'moreutils'
'netcat'
'openjdk'
Expand Down

0 comments on commit 2489b21

Please sign in to comment.