Skip to content

Commit bee03cb

Browse files
authored
Fix annoying grep message (#216)
Signed-off-by: Evangelos Lamprou <vagos@lamprou.xyz>
1 parent b6e0886 commit bee03cb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

try

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ try() {
7878
## because we have already checked if it valid.
7979
export SANDBOX_DIR
8080

81-
# We created "$IGNORE_FILE" up front, but now we can stash it in the sandbox.
82-
mv "$IGNORE_FILE" "$SANDBOX_DIR"/ignore
83-
IGNORE_FILE="$SANDBOX_DIR"/ignore
84-
8581
try_mount_log="$SANDBOX_DIR"/mount.log
8682
export try_mount_log
8783

@@ -95,6 +91,10 @@ try() {
9591
mount -t tmpfs tmpfs "$SANDBOX_DIR"
9692
fi
9793

94+
# Move ignore patterns after any tmpfs mount; mounting SANDBOX_DIR hides prior contents.
95+
mv "$IGNORE_FILE" "$SANDBOX_DIR"/ignore
96+
IGNORE_FILE="$SANDBOX_DIR"/ignore
97+
9898
mkdir -p "$SANDBOX_DIR/upperdir" "$SANDBOX_DIR/workdir" "$SANDBOX_DIR/temproot"
9999

100100
## Find all the directories and mounts that need to be mounted

0 commit comments

Comments
 (0)