aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-10-19 14:45:37 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-10-19 14:45:37 -0300
commit303112146f242da44ccb9f7c2afe5c0f28fa0110 (patch)
treef3cac048f0dd429e6361bbfd92c090ea6383865f
parent6d44c532eee291dd760626775d0780678f5f402e (diff)
downloadkvmx-303112146f242da44ccb9f7c2afe5c0f28fa0110.tar.gz
kvmx-303112146f242da44ccb9f7c2afe5c0f28fa0110.tar.bz2
Fix: syntax check at rsync_to and rsync_from
-rwxr-xr-xkvmx10
1 files changed, 10 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 3759502..b4e7d18 100755
--- a/kvmx
+++ b/kvmx
@@ -1208,6 +1208,11 @@ function kvmx_rsync_to {
ORIG="$1"
DEST="$2"
+ if [ -z "$ORIG" ]; then
+ echo "usage $BASENAME rsync_to $GUEST <orig> [dest]"
+ exit 1
+ fi
+
if [ -z "$DEST" ]; then
# Error
#exit 1
@@ -1240,6 +1245,11 @@ function kvmx_rsync_from {
ORIG="$1"
DEST="$2"
+ if [ -z "$ORIG" ]; then
+ echo "usage $BASENAME rsync_from $GUEST <orig> [dest]"
+ exit 1
+ fi
+
if [ -z "$DEST" ]; then
# Error
#exit 1