diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-10-19 14:45:37 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-10-19 14:45:37 -0300 |
commit | 303112146f242da44ccb9f7c2afe5c0f28fa0110 (patch) | |
tree | f3cac048f0dd429e6361bbfd92c090ea6383865f | |
parent | 6d44c532eee291dd760626775d0780678f5f402e (diff) | |
download | kvmx-303112146f242da44ccb9f7c2afe5c0f28fa0110.tar.gz kvmx-303112146f242da44ccb9f7c2afe5c0f28fa0110.tar.bz2 |
Fix: syntax check at rsync_to and rsync_from
-rwxr-xr-x | kvmx | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |