Created
February 10, 2022 00:30
-
-
Save voku/32d3219f46edd6e118d9356111cd5c62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
$output = []; | |
exec('[ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && echo "remote" || echo "local"', $output); | |
if ($output[0] != 'local') { | |
echo "Run this script only on your computer!\n\n"; | |
// @codingStandardsIgnoreStart | |
exit(1); | |
// @codingS | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment