Skip to content

Commit 16d7689

Browse files
committed
chore(clish): check gd extension
1 parent 048eb60 commit 16d7689

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/clish

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ if (\Phar::running() && !\extension_loaded('zlib')) {
1313
exit(1);
1414
}
1515

16+
if (!\extension_loaded('gd')) {
17+
echo "clish requires gd extension for exporting highlighted code to png image\n";
18+
19+
exit(1);
20+
}
21+
1622
if (\file_exists(__DIR__ . '/../../../autoload.php')) {
1723
require __DIR__ . '/../../../autoload.php';
1824
} elseif (\file_exists(__DIR__ . '/../../autoload.php')) {

0 commit comments

Comments
 (0)