Skip to content

Commit 2e77555

Browse files
committed
Improve test shell script
1 parent 7efc5da commit 2e77555

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/test.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
#!/bin/bash
2-
# Checks if jellyfin server is currently serving media to any user.
3-
# Mark Blakeney, Nov 2020.
4-
5-
TOKEN="$1"
6-
TDIR="$(dirname $0)"
7-
8-
if [[ -f $TDIR/$TOKEN ]]; then
9-
exit 254
10-
fi
2+
FILE="$(dirname $0)"/"$1"
113

4+
[[ -f $FILE ]] && exit 254
125
exit 0

0 commit comments

Comments
 (0)