We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3704d4 commit 0ed1827Copy full SHA for 0ed1827
1 file changed
test/missing_unionfs_mergerfs.sh
@@ -27,14 +27,15 @@ try_workspace="$(mktemp -d)"
27
cd "$try_workspace" || return 9
28
29
new_bin_dir="$(mktemp -d)"
30
-mkdir "$new_bin_dir/usr"
+mkdir -p "$new_bin_dir/usr/local"
31
# -s makes symlinks
32
cp -rs /usr/bin "$new_bin_dir/usr/bin"
33
+cp -rs /usr/local/bin "$new_bin_dir/usr/local/bin"
34
35
# Delete mergerfs and unionfs and set the new PATH to the temporary directory
36
rm -f "$new_bin_dir/usr/bin/mergerfs" 2>/dev/null
37
rm -f "$new_bin_dir/usr/bin/unionfs" 2>/dev/null
38
39
echo hi >expected
-PATH="$new_bin_dir/usr/bin" "$TRY" -y "echo hi" >target 2>/dev/null || return 1
40
+PATH="$new_bin_dir/usr/bin:$new_bin_dir/usr/local/bin" "$TRY" -y "echo hi" >target 2>/dev/null || return 1
41
diff -q expected target || return 2
0 commit comments