Skip to content

Commit f4a7a83

Browse files
committed
fix xtrace output on api mount
1 parent 49e8556 commit f4a7a83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ api_fs_mount() {
2020
mount -t devpts devpts "$1/dev/pts" -o mode=0620,gid=5,nosuid,noexec &&
2121
mount -t tmpfs shm "$1/dev/shm" -o mode=1777,nosuid,nodev &&
2222
mount -t tmpfs run "$1/run" -o nosuid,nodev,mode=0755 &&
23-
mount -t tmpfs tmp "$1/tmp" -o mode=1777,strictatime,nodev,nosuid,size=50M &&
24-
{ set +x; } 2>/dev/null
23+
mount -t tmpfs tmp "$1/tmp" -o mode=1777,strictatime,nodev,nosuid,size=50M
24+
{ ret=$?; set +x; } 2>/dev/null
25+
return $ret
2526
}
2627

2728
api_fs_umount() {

0 commit comments

Comments
 (0)