feat: added prop dyn support to more widgets
This commit is contained in:
10
examples/data-structures/scripts/readlast_and_truncate.sh
Executable file
10
examples/data-structures/scripts/readlast_and_truncate.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
while true; do
|
||||
# read the last line
|
||||
if [ -s /tmp/selected_emoji.txt ]; then
|
||||
tail -n 1 /tmp/selected_emoji.txt
|
||||
# truncate the file after reading
|
||||
: > /tmp/selected_emoji.txt
|
||||
fi
|
||||
sleep 0.1
|
||||
done
|
||||
Reference in New Issue
Block a user