]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix: minor corrections and improvements on kvmx_rsync_to, kvmx_rsync_from and kvmx_in...
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Aug 2024 02:14:37 +0000 (23:14 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Aug 2024 02:14:37 +0000 (23:14 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 6a796d85080d8dbeee129de28081416a41366e59..2819599cb0325167eaf88fdf174a3b2ce18733e0 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -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