diff --git a/randomvideo.sh b/randomvideo.sh index 16c64bc..df83455 100755 --- a/randomvideo.sh +++ b/randomvideo.sh @@ -31,7 +31,7 @@ fi while true; do file="$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)" - while [ "$file" == "$oldfile" ]; do + while [ "$file" = "$oldfile" ]; do file="$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)" done