Skip to content

Commit 49c35de

Browse files
committed
chore: resolve stylecop and markdown lint issues
Signed-off-by: jbrinkman <joe.brinkman@improving.com>
1 parent 4231f5d commit 49c35de

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ curl -fsSL https://raw.githubusercontent.com/jbrinkman/dotnet-api-diff/main/inst
105105
Download the latest release for your platform from [GitHub Releases](https://github.com/jbrinkman/dotnet-api-diff/releases):
106106

107107
- **Linux**: `dotnet-api-diff-linux-x64.tar.gz` or `dotnet-api-diff-linux-arm64.tar.gz`
108-
- **macOS**: `dotnet-api-diff-osx-x64.tar.gz` or `dotnet-api-diff-osx-arm64.tar.gz`
108+
- **macOS**: `dotnet-api-diff-osx-x64.tar.gz` or `dotnet-api-diff-osx-arm64.tar.gz`
109109
- **Windows**: `dotnet-api-diff-win-x64.zip` or `dotnet-api-diff-win-arm64.zip`
110110

111111
Extract the archive and add the binary to your PATH.

install.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ get_asset_info() {
286286
local version="$1"
287287
local os="$2"
288288
local arch="$3"
289-
289+
290290
print_info "Getting download information for $os-$arch..." >&2
291-
291+
292292
# Determine file extension based on OS
293293
local file_ext
294294
case $os in
@@ -302,13 +302,13 @@ get_asset_info() {
302302
die "Unsupported OS: $os"
303303
;;
304304
esac
305-
305+
306306
local asset_name="dotnet-api-diff-$os-$arch.$file_ext"
307307
local release_info
308308
release_info=$(curl -fsSL "https://api.github.com/repos/$GITHUB_REPO/releases/tags/$version" 2>/dev/null) || {
309309
die "Failed to fetch release information for version $version."
310310
}
311-
311+
312312
# Extract download URL and checksum
313313
local download_url
314314
download_url=$(echo "$release_info" | grep -A 30 "\"name\": \"$asset_name\"" | grep '"browser_download_url"' | sed -E 's/.*"browser_download_url": "([^"]+)".*/\1/')
@@ -456,21 +456,21 @@ check_install_permissions() {
456456
install_binary() {
457457
local extract_dir="$1"
458458
local install_dir="$2"
459-
459+
460460
print_info "Installing to $install_dir..."
461-
461+
462462
# Find the binary in the extracted files
463463
local binary_path
464464
binary_path=$(find "$extract_dir" -name "$BINARY_NAME" -type f | head -1)
465-
465+
466466
if [[ -z "$binary_path" ]]; then
467467
die "Binary '$BINARY_NAME' not found in extracted files."
468468
fi
469-
469+
470470
# Install with user-friendly name
471471
local target_name="dotnetapidiff"
472472
local target_path="$install_dir/$target_name"
473-
473+
474474
# Check if binary already exists
475475
if [[ -f "$target_path" ]] && [[ "$FORCE_INSTALL" != "true" ]]; then
476476
print_warning "Binary already exists at $target_path. Use --force to overwrite."
@@ -479,11 +479,11 @@ install_binary() {
479479
print_info "Existing version: $existing_version"
480480
return 1
481481
fi
482-
482+
483483
# Copy binary and set permissions
484484
cp "$binary_path" "$target_path" || die "Failed to copy binary to $target_path"
485485
chmod +x "$target_path" || die "Failed to set executable permissions on $target_path"
486-
486+
487487
print_success "Binary installed to $target_path"
488488
}
489489

@@ -554,19 +554,19 @@ update_path() {
554554
verify_installation() {
555555
local install_dir="$1"
556556
local version="$2"
557-
557+
558558
print_info "Verifying installation..."
559-
559+
560560
local binary_path="$install_dir/dotnetapidiff"
561-
561+
562562
if [[ ! -f "$binary_path" ]]; then
563563
die "Installation verification failed: binary not found at $binary_path"
564564
fi
565-
565+
566566
if [[ ! -x "$binary_path" ]]; then
567567
die "Installation verification failed: binary is not executable"
568568
fi
569-
569+
570570
# Test that the binary can run
571571
local installed_version
572572
if installed_version=$("$binary_path" --version 2>/dev/null | head -1); then

0 commit comments

Comments
 (0)