Skip to content

Commit 0b28a14

Browse files
authored
Merge pull request #927 from rkfg/patch-1
Only mount tmpfs to /tmp if it's not mounted yet
2 parents 7d45aa3 + c8eae94 commit 0b28a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testappimage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mkdir -p /tmp/$PREF/iso
3535
mkdir -p /tmp/$PREF/workdir
3636

3737
# openSUSE LEAP 42.2 does not have a tmpfs in /tmp but we need this
38-
mount | grep "/tmp type tmpfs" && sudo mount -t tmpfs tmpfs /tmp/
38+
mount | grep -q "/tmp type tmpfs" || sudo mount -t tmpfs tmpfs /tmp/
3939

4040
# If ISO was specified, then mount it and find contained filesystem
4141
THEFS="$1"

0 commit comments

Comments
 (0)