]> git.donarmstrong.com Git - roundcube.git/blobdiff - bin/msgexport.sh
Do not release, yet
[roundcube.git] / bin / msgexport.sh
index b15da1febc3f5a3e706977842e5b798631c6b776..7dd56e9ea6220e3f4d230e0c410e16507b3d35e1 100755 (executable)
@@ -1,5 +1,8 @@
-#!/usr/bin/php
+#!/usr/bin/env php
 <?php
+if (php_sapi_name() != 'cli') {
+    die('Not on the "shell" (php-cli).');
+}
 
 define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
 ini_set('memory_limit', -1);
@@ -169,4 +172,4 @@ else
        vputs("IMAP login failed.\n");
 }
 
-?>
\ No newline at end of file
+?>