diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-08-02 23:14:37 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-08-02 23:14:37 -0300 |
commit | 2d6cf34747ed47e2fe8e30982d737d87113c972d (patch) | |
tree | 2d3e60d956b4eee67ef2f035d42610a052ff073d | |
parent | c26a6f81a7987acb4041e4125ff436bcf00728bc (diff) | |
download | kvmx-2d6cf34747ed47e2fe8e30982d737d87113c972d.tar.gz kvmx-2d6cf34747ed47e2fe8e30982d737d87113c972d.tar.bz2 |
Fix: minor corrections and improvements on kvmx_rsync_to, kvmx_rsync_from and kvmx_inotify
-rwxr-xr-x | kvmx | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1259,7 +1259,7 @@ function kvmx_rsync_to { DEST="$2" if [ -z "$ORIG" ]; then - echo "usage $BASENAME rsync_to $GUEST <orig> [dest]" + echo "usage $BASENAME rsync_to $VM <orig> [dest]" exit 1 fi @@ -1296,7 +1296,7 @@ function kvmx_rsync_from { DEST="$2" if [ -z "$ORIG" ]; then - echo "usage $BASENAME rsync_from $GUEST <orig> [dest]" + echo "usage $BASENAME rsync_from $VM <orig> [dest]" exit 1 fi @@ -2583,7 +2583,7 @@ function kvmx_inotify { # Syntax check if [ -z "$command" ]; then - echo "usage $BASENAME inotify $GUEST <watched> <command>" + echo "usage $BASENAME inotify $VM <watched> <command>" echo "example: kvmx inotify $guest hostfolder make -C guestfolder compile" exit 1 fi @@ -2604,6 +2604,9 @@ function kvmx_inotify { done fi + # Inform user what's about to happen + echo "Watching $watched on guest \"$VM\" to exec \"$command\" upon changes..." + # Dispatch while inotifywait $args -r $watched; do echo "$command" | kvmx_ssh |