Skip to content

Commit

Permalink
treehouses rename log and exit (fixes #2188) (#2208)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
rjpadilla and dogi authored Apr 26, 2021
1 parent 60ccfca commit 9f0a7ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/rename.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9f0a7ba

Please sign in to comment.