-
-
Notifications
You must be signed in to change notification settings - Fork 98
hassbian-config: Usage cleanup, added new help and command options. #125
Conversation
@@ -83,6 +97,10 @@ function share-log { | |||
} | |||
|
|||
function install-suite { | |||
if [ "$(id -u)" != "0" ]; then | |||
echo "This script must be run with sudo. Use \"sudo hassbian-config install "$1"\"" 1>&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The surrounding quotes actually unquote this. Remove or escape them.
Double quote to prevent globbing and word splitting.
@@ -112,6 +130,10 @@ function install-suite { | |||
} | |||
|
|||
function upgrade-suite { | |||
if [ "$(id -u)" != "0" ]; then | |||
echo "This script must be run with sudo. Use \"sudo hassbian-config upgrade "$1"\"" 1>&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The surrounding quotes actually unquote this. Remove or escape them.
Double quote to prevent globbing and word splitting.
@@ -83,6 +97,10 @@ function share-log { | |||
} | |||
|
|||
function install-suite { | |||
if [ "$(id -u)" != "0" ]; then | |||
echo "This script must be run with sudo. Use 'sudo hassbian-config install "$1"'" 1>&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The surrounding quotes actually unquote this. Remove or escape them.
Double quote to prevent globbing and word splitting.
@@ -112,6 +130,10 @@ function install-suite { | |||
} | |||
|
|||
function upgrade-suite { | |||
if [ "$(id -u)" != "0" ]; then | |||
echo "This script must be run with sudo. Use 'sudo hassbian-config upgrade "$1"'" 1>&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The surrounding quotes actually unquote this. Remove or escape them.
Double quote to prevent globbing and word splitting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 🍪
Description:
-H
and--help
to show the help menu.--version
, as alias to-V
--force
as alias to-f
--accept
as alias to-y
Related issue (if applicable): Fixes #
Checklist:
If pertinent:
/docs
Screenshot of the help function: