Skip to content

Commit

Permalink
secrets: fix missing is_binary func
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed Apr 23, 2024
1 parent fc45534 commit d8855fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions store_secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ help() {
printf "Stores configuration secrets to \"%s\".\n\nUsage: %s <%s|%s>\n" "$data_path" "$script_name" "$laptop_hostname" "$desktop_hostname"
}

is_binary() {
LC_MESSAGES=C grep -Hm1 '^' <"${1-$REPLY}" | grep -q '^Binary'
}

diff_files() {
if [[ ! -f "$1" ]]; then
echo "file ${1} does not exist"
Expand Down

0 comments on commit d8855fc

Please sign in to comment.