We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 583d78a commit 1ce933cCopy full SHA for 1ce933c
umountrepo
@@ -62,22 +62,28 @@ if [ "`id -u`" == 0 ]; then
62
ISROOT=true
63
else
64
ISROOT=false
65
+ # detect fusermount helper available on the system
66
+ FUSERMOUNT=$(command -pv fusermount)
67
+ if [ -z "$FUSERMOUNT" ]; then
68
+ FUSERMOUNT=$(command -pv fusermount3)
69
+ fi
70
fi
71
72
+
73
for REPO; do
74
if $LAZY; then
75
echo "Lazily unmounting $REPO"
76
if $ISROOT; then
77
umount -l $REPO
78
- fusermount -uz $REPO
79
+ $FUSERMOUNT -uz $REPO
80
81
82
echo "Unmounting $REPO"
83
84
umount $REPO
85
- fusermount -u $REPO
86
+ $FUSERMOUNT -u $REPO
87
88
rmdir $REPO
89
0 commit comments