change the if condition if platform not linux exit

in the check for platform
just exit from the script if not