diff options
author | Kyrylo Yatsenko <hedrok@gmail.com> | 2025-07-01 08:20:57 +0300 |
---|---|---|
committer | Kyrylo Yatsenko <hedrok@gmail.com> | 2025-07-01 08:20:57 +0300 |
commit | 919385cd7fad1c9759984ff0abfb832b73a7403f (patch) | |
tree | b74bbf928277260139ee5464333daf04be281d35 | |
parent | 2a7decbdcb9920a67cef18b326ddd5d294a2cd00 (diff) | |
download | vyatta-cfg-919385cd7fad1c9759984ff0abfb832b73a7403f.tar.gz vyatta-cfg-919385cd7fad1c9759984ff0abfb832b73a7403f.zip |
cli: T6769: fix PR issues: default comment + typo
As suggested in https://github.com/vyos/vyatta-cfg/pull/103
* Get back lost default value of `comment` variable
* Fix typo `arugments` -> `arguments` in message
-rw-r--r-- | functions/interpreter/vyatta-cfg-run | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run index 380cfa6..dc69d6c 100644 --- a/functions/interpreter/vyatta-cfg-run +++ b/functions/interpreter/vyatta-cfg-run @@ -116,13 +116,14 @@ vyatta_config_commit () fi fi + local comment="commit" if [ $# -gt 0 ] ; then if [ $# = 1 ] || [ $# -gt 2 ] || [ "$1" != "comment" ]; then if [ "$1" == "confirm" ]; then echo "Use commit-confirm command" return 1 fi - echo "Error: commit accepts either no arugments, or optional 'comment'" \ + echo "Error: commit accepts either no arguments, or optional 'comment'" \ "with comment text as second argument." echo -e "\tUsage: 'commit [comment COMMENTTEXT]'" return 1; |