feat: improve scripts and write tests
This commit is contained in:
32 files changed
+3817
-723
No files matched your search
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
[[ "$1" == "--" ]] && shift
|
||||
echo "umount $*" >> "${FAKE_OPS_LOG:-/dev/null}"
|
||||
[[ ":${FAKE_UMOUNT_FAIL:-}:" != *":$1:"* ]] || { echo "umount: $1: target is busy" >&2; exit 32; }
|
||||
grep -v -F " $1" "$FAKE_MOUNTS" > "$FAKE_MOUNTS.new"; mv "$FAKE_MOUNTS.new" "$FAKE_MOUNTS"
|
||||
Reference in new issue
Block a user