From ee3d03a63dfd4d65ac7ab955c0379f0c75ff42e2 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sat, 16 Dec 2023 20:38:11 +0000 Subject: [PATCH] Correct a couple of typos. --- gitattributsdb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitattributsdb b/gitattributsdb index 1e0f3e8..faaacd4 100755 --- a/gitattributsdb +++ b/gitattributsdb @@ -73,7 +73,7 @@ store_attributes() { log "Storing file attributes into database" # Use a temporary file for the new database. - DB_TMP="$(mktmp "$DB_FILE.XXXXXX" 2>/dev/null)" || error "Failed to create temporary database file" + DB_TMP="$(mktemp "$DB_FILE.XXXXXX" 2>/dev/null)" || error "Failed to create temporary database file" # While Darwin supports ACLs, there is no standard output and input format for them - don't even try. [[ "$PLATFORM" == "Darwin" ]] && warn "Not storing ACLs on Darwin" @@ -104,7 +104,7 @@ store_attributes() { # Move the temporary file into place. mv -- "$DB_TMP" "$DB_FILE" 2>/dev/null || { rm -f -- "$DB_TMP"; error "Failed to move database temporary file into place"; } - info "$COUNT entries stored" + log "$COUNT entries stored" # Add the databases themselves to the commit. git add --all -f -- "$DB_EXTRA" 2>/dev/null # OK to fail silently. @@ -151,7 +151,7 @@ restore_attributes() { (( COUNT++ )) done < <(printf "%s\\n" "${!DB_OWNERSHIPS[@]}") - info "$COUNT entries restored" + log "$COUNT entries restored" return 0 }