2025-02-06 09:21:33 +00:00
|
|
|
#!/bin/sh
|
2018-03-18 05:12:39 -04:00
|
|
|
|
2024-08-18 08:13:26 +02:00
|
|
|
# SPDX-FileCopyrightText: 2010 - 2024 the Friendica project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2025-02-06 09:21:33 +00:00
|
|
|
dir=$(cd "$(dirname "$0")" > /dev/null 2>&1; pwd)
|
2018-03-18 05:12:39 -04:00
|
|
|
|
2025-02-06 09:21:33 +00:00
|
|
|
if [ -d /proc/cygdrive ] && [ "$(which php)" = "$(readlink -n /proc/cygdrive)/*" ]; then
|
2023-03-21 23:17:01 -04:00
|
|
|
# We are in Cygwin using Windows php, so the path must be translated
|
2025-02-06 09:21:33 +00:00
|
|
|
dir=$(cygpath -m "$dir")
|
2018-03-18 05:12:39 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
php "${dir}/console.php" "$@"
|