fix: Shell linting (#328)

Cleanup various shell linting issues
* Use `/usr/bin/env` consistently for better platform compatibility.
* SC2317 (info): Command appears to be unreachable.
* SC2002 (style): Useless cat.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
Ben Kochie
2025-04-09 23:30:33 +01:00
committed by Siyuan Miao
parent b94de38510
commit 3f20c23ea1
3 changed files with 8 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Check if an IP address was provided as an argument
if [ -z "$1" ]; then