blob: 3b85de8370b8ab5e568cacb6405d65ffb1194fe5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/execlineb -s1
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is>
foreground {
redirfd -w 2 /dev/null
foreground { mkdir /run/wait }
mkfifo /run/wait/${1}
}
foreground {
redirfd -w 1 /dev/null
head -1 /run/wait/${1}
}
rm /run/wait/${1}
|