From 9f0a7ba52ca2691acaa6328f465a9d67594e3271 Mon Sep 17 00:00:00 2001 From: RJ Padilla Date: Mon, 26 Apr 2021 15:49:11 -0400 Subject: [PATCH] `treehouses rename` log and exit (fixes #2188) (#2208) Co-authored-by: dogi --- modules/rename.sh | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/rename.sh b/modules/rename.sh index bcc77438e5..2655c758ee 100644 --- a/modules/rename.sh +++ b/modules/rename.sh @@ -9,7 +9,7 @@ function rename () { [[ ${#1} -gt "64" ]] || #Checks for length greater than 64 [ -z "$1" ]; #Checks if variable is empty then - echo "Unsuccessful: Make sure to remove special characters." + log_and_exit1 "Unsuccessful: Make sure to remove special characters." else CURRENT_HOSTNAME=$(< /etc/hostname tr -d " \\t\\n\\r") echo "$1" > /etc/hostname diff --git a/package.json b/package.json index 014c9c17b4..0ad1056cf9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@treehouses/cli", - "version": "1.25.52", + "version": "1.25.53", "remote": "4000", "description": "Thin command-line interface for Raspberry Pi low level configuration.", "main": "cli.sh",