lackadaisical/filewait
2025-12-31 16:06:50 +01:00

12 lines
204 B
Bash
Executable file

#!/bin/bash
# A simple utility that waits for a file to become available, infinitely
LD_INTERNAL=1
. $(dirname $(realpath $0))/daisy.source
file=$@
while [ ! -f "$file" ]
do
sleep 0.1
done
echo $file