summaryrefslogtreecommitdiffstats
path: root/tests/test_bar/path/lemonbar
blob: 13c6030ed2c9c9de31a5bc974cad5a2311f36a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

RES_DIR="$TEST_ROOT/results"
mkdir -p "$RES_DIR"
RES_FILE="$RES_DIR/$$"
while test -e "$RES_FILE.log" ; do
	RES_FILE="$RES_FILE.${RANDOM:-`date +%N | sed s/^0*//`}"
done

echo $(basename $0) "$@" > "$RES_FILE.args"
cat > "$RES_FILE.log"