diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-03-10 14:15:24 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-03-10 14:15:24 -0300 |
commit | 00c9b37a6d89fedb0c4b95066d8f27367cbfe7ee (patch) | |
tree | 7ae5530430f4e951b943dafc1ff41ef518154b65 | |
parent | eb13690042fd1cff11e1918f421c0dbf1b0ef37a (diff) | |
download | kvmx-00c9b37a6d89fedb0c4b95066d8f27367cbfe7ee.tar.gz kvmx-00c9b37a6d89fedb0c4b95066d8f27367cbfe7ee.tar.bz2 |
Fixes usage
-rwxr-xr-x | kvmx | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -124,7 +124,7 @@ function kvmx_usage { echo "" echo "available actions:" echo "" - grep "^function kvmx_" $0 | cut -d ' ' -f 2 | sed -e 's/kvmx_/\t/' + grep "^function kvmx_" $0 | cut -d ' ' -f 2 | sed -e 's/kvmx_/\t/' | sort echo "" echo "examples:" echo "" @@ -268,7 +268,7 @@ function kvmx_initialize { mkdir -p $GLOBAL_USER_CONFIG_FOLDER # Load and check guest config - if [ "$ACTION" != "init" ] && [ "$ACTION" != "list" ] && [ "$ACTION" != "edit" ]; then + if [ "$ACTION" != "init" ] && [ "$ACTION" != "list" ] && [ "$ACTION" != "edit" ] && [ "$ACTION" != "usage" ]; then if [ ! -e "$GLOBAL_USER_CONFIG_FOLDER/$VM" ]; then echo "$BASENAME: config not found: $GLOBAL_USER_CONFIG_FOLDER/$VM" exit 1 |