Skip to content

Commit ae45e1a

Browse files
authored
Redirect log_info output to stderr for improved error visibility in g… (#16)
* Redirect log_info output to stderr for improved error visibility in get_latest_release_url function * Bump version to 0.1.2 in README.md and sync-ssh-keys.sh
1 parent 4b50d95 commit ae45e1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Lint Status](https://img.shields.io/github/actions/workflow/status/locus313/ssh-key-sync/lint.yml?style=flat-square&label=lint)](https://github.com/locus313/ssh-key-sync/actions)
44
[![License](https://img.shields.io/badge/License-MIT-blue?style=flat-square)](LICENSE)
55
[![Shell](https://img.shields.io/badge/Shell-Bash-green?style=flat-square&logo=gnu-bash)](https://www.gnu.org/software/bash/)
6-
[![Version](https://img.shields.io/badge/Version-0.1.1-orange?style=flat-square)](https://github.com/locus313/ssh-key-sync/releases)
6+
[![Version](https://img.shields.io/badge/Version-0.1.2-orange?style=flat-square)](https://github.com/locus313/ssh-key-sync/releases)
77

88
⭐ If you like this project, star it on GitHub — it helps a lot!
99

sync-ssh-keys.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -euo pipefail
77
# Repository: https://github.com/locus313/ssh-key-sync
88

99
# shellcheck disable=SC2034 # planned to be used in a future release
10-
readonly SCRIPT_VERSION="0.1.1"
10+
readonly SCRIPT_VERSION="0.1.2"
1111
SCRIPT_NAME="$(basename "$0")"
1212
readonly SCRIPT_NAME
1313

@@ -196,7 +196,7 @@ get_latest_release_url() {
196196
local repo="$1"
197197
local api_url="https://api.github.com/repos/$repo/releases/latest"
198198

199-
log_info "Fetching latest release information..."
199+
log_info "Fetching latest release information..." >&2
200200

201201
if ! curl -fsSL "$api_url" | grep "browser_download_url" | grep "sync-ssh-keys.sh" | cut -d '"' -f 4; then
202202
log_error "Could not determine the latest version URL from GitHub API"

0 commit comments

Comments
 (0)