SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
34
sysutils/unionfs-fuse/patches/patch-test_legacy_sh
Normal file
34
sysutils/unionfs-fuse/patches/patch-test_legacy_sh
Normal file
|
@ -0,0 +1,34 @@
|
|||
Index: test_legacy.sh
|
||||
--- test_legacy.sh.orig
|
||||
+++ test_legacy.sh
|
||||
@@ -1,6 +1,11 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
# this is a legacy version (will be removed in the future). please use ./test script (which uses python).
|
||||
|
||||
+if [ `id -u` != 0 ]; then
|
||||
+ echo "\n*** NOTE: ${0##*/} requires root privileges ***\n\n"
|
||||
+ exit 1
|
||||
+fi
|
||||
+
|
||||
set -v
|
||||
set -e
|
||||
|
||||
@@ -11,7 +16,7 @@ echo v1 > original/play-with-me
|
||||
echo v1 > original/delete-me
|
||||
|
||||
cleanup() {
|
||||
- if [ -e "union" ]; then fusermount -u -q union; fi
|
||||
+ if [ -e "union" ]; then umount union 2>/dev/null || true; fi
|
||||
rm -rf union original working-copy
|
||||
}
|
||||
trap cleanup EXIT
|
||||
@@ -86,7 +91,7 @@ else
|
||||
fi
|
||||
set -e
|
||||
|
||||
-fusermount -u union
|
||||
+umount union
|
||||
|
||||
[ "$(cat original/file)" = "v1" ]
|
||||
[ "$(cat original/play-with-me)" = "v1" ]
|
Loading…
Add table
Add a link
Reference in a new issue