Skip to content

Commit c586277

Browse files
committed
Fix upgrade on macOS
1 parent b2ca025 commit c586277

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

build-dist.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GREEN='\033[0;32m'
77
BLUE='\033[0;34m'
88
NC='\033[0m'
99

10-
VERSION="1.4.5"
10+
VERSION="1.4.6"
1111
DIST_DIR="dist"
1212
ARCHIVE_NAME="shipnode-payload.tar.gz"
1313
INSTALLER_NAME="shipnode-installer.sh"
@@ -90,7 +90,7 @@ YELLOW='\033[1;33m'
9090
BLUE='\033[0;34m'
9191
NC='\033[0m'
9292
93-
VERSION="1.4.5"
93+
VERSION="1.4.6"
9494
INSTALL_DIR="$HOME/.shipnode"
9595
9696
# Parse flags

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BLUE='\033[0;34m'
1010
NC='\033[0m'
1111

1212
echo -e "${BLUE}╔════════════════════════════════════╗${NC}"
13-
echo -e "${BLUE}║ ShipNode Installer v1.4.5${NC}"
13+
echo -e "${BLUE}║ ShipNode Installer v1.4.6${NC}"
1414
echo -e "${BLUE}╚════════════════════════════════════╝${NC}"
1515
echo
1616

lib/commands/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cmd_upgrade() {
1313
# Use -w to get HTTP status code, -s for silent, -S to show errors
1414
api_response=$(curl -sSL -w "\n%{http_code}" "https://api.github.com/repos/devalade/shipnode/releases/latest" 2>/dev/null)
1515
http_code=$(echo "$api_response" | tail -n1)
16-
api_response=$(echo "$api_response" | head -n-1)
16+
api_response=$(printf '%s\n' "$api_response" | sed '$d')
1717

1818
if [ "$http_code" = "404" ]; then
1919
error "No releases available yet. Please check $repo_url/releases"

lib/core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BLUE='\033[0;34m'
1010
NC='\033[0m' # No Color
1111

1212
# ShipNode version
13-
VERSION="1.4.5"
13+
VERSION="1.4.6"
1414

1515
# SSH multiplexing for connection reuse
1616
SSH_CONTROL_PATH="/tmp/shipnode-ssh-%r@%h:%p"

0 commit comments

Comments
 (0)