1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Description: Fix the hello.sh example script
The upstream one uses the wrong variable to capture the process PID. It also
fails to unmount the FS before cleaning up. Finally, we ignore any strerr
noises due to this package own umount calls which will fail after killingthe
process.
Author: Athos Ribeiro <athos@debian.org>
Forwarded: no
Last-Update: 2025-11-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/hello.sh
+++ b/hello.sh
@@ -1,10 +1,12 @@
#!/bin/sh
+set -e
+
mkdir -p hello
-ruby -rsample/hello -e "puts 'starting...'" hello &
-echo $? > pid
+ruby -r ./sample/hello -e "puts 'starting...'" hello &
+echo $! > pid
sleep 1
cat hello/hello.txt
-# umount hello/
+umount hello/
sleep 1
cat pid | xargs kill
rmdir hello
|