The <code>[[ ]]</code> is a bash-ism and might not be friendly to vanilla sh. Use test i.e. <code>[ ]</code>.