Conditional in shell script
<pre><code>OS: ubuntu 14.04
</code></pre>

<p>I have the following script:</p>

<pre><code>#!/bin/bash
read -rsp $'Press Y/y to execute script or any other key to exit...\n' -n1 key
if [ "$key" != 'y' ] || [ "$key" != 'Y' ] ; then
    echo 'You did not press the y key'
    exit
fi
echo 'some other stuff'
</code></pre>

<p>No matter what key I press, it always echoes "You did not press the y key"</p>

<p>What am I doing wrong?</p>