script: use `[[` instead of `[` for if statements

Signed-off-by: Corey Powell <mistdragon100@gmail.com>