Skip to content

Commit

Permalink
treehouses shutdown english (fixes #2048) (#2052)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
rjpadilla and dogi authored Mar 4, 2021
1 parent 7825c20 commit a079d65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions modules/shutdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ function shutdown {
checkroot
case "$1" in
"")
echo "Shutting down in 60 seconds. Press crtl+c to cancel"
echo "Shutting down in 60 seconds. Press ctrl+c to cancel."
sleep 60
/sbin/shutdown now
;;
"now")
/sbin/shutdown now
;;
"in")
echo "Shutting down in $2 seconds. Press crtl+c to cancel"
echo "Shutting down in $2 seconds. Press ctrl+c to cancel."
sleep "$2"
/sbin/shutdown now
;;
"force")
/sbin/shutdown -f
;;
*)
echo "Error: only now, in and force options are supported"
echo "Error: only the options 'now', 'in', and 'force' are supported."
;;
esac
}
Expand All @@ -32,13 +32,13 @@ function shutdown_help {
echo
echo "Example:"
echo " $BASENAME shutdown"
echo " System shutdown in 60 seconds. 'ctrl+c' to cancel"
echo " System shutdown in 60 seconds. Press ctrl+c to cancel."
echo
echo " $BASENAME shutdown now"
echo " System shutdown immediately"
echo
echo " $BASENAME shutdown in <time in seconds>"
echo " System will shutdown after the specified time. 'ctrl+c' to cancel"
echo " System will shutdown after the specified time. Press ctrl+c to cancel."
echo
echo " $BASENAME shutdown force"
echo " System will force shutdown"
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.10",
"version": "1.25.11",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down

0 comments on commit a079d65

Please sign in to comment.