Skip to content

Commit df9f472

Browse files
committed
"$(uname)" just in case, prevent word splitting
1 parent e7f2b8e commit df9f472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracker-add-auto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ while true ; do
3939
ids="$(${trans} --list | grep -vE 'Seeding|Stopped|Finished|[[:space:]]100%[[:space:]]' | grep '^ ' | awk '{ print $1 }' | grep -vE 'ID')"
4040
for id in $ids ; do
4141
add_date="$(${trans} --torrent "$id" --info| grep '^ Date added: ' |cut -c 21-)"
42-
if [ $(uname) = "FreeBSD" ]; then
42+
if [ "$(uname)" = "FreeBSD" ]; then
4343
add_date_t="$(date -jf "%+" "$add_date" "+%Y-%m-%d %H:%M")"
4444
dateo="$(date -jv-1M "+%Y-%m-%d %H:%M")"
4545
else

0 commit comments

Comments
 (0)