mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Ensure All commands are executed within the update and setup scripts directory
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
// Change to the directory of this script so that all shell commands run here
|
||||
chdir(__DIR__);
|
||||
|
||||
// Ensure script is run only from the CLI
|
||||
if (php_sapi_name() !== 'cli') {
|
||||
die("This script can only be run from the command line.\n");
|
||||
|
||||
Reference in New Issue
Block a user