Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e80d8006a2 | ||
|
|
d648e4339a | ||
|
|
4b084f8785 |
@@ -1 +1 @@
|
|||||||
9.0.3
|
9.0.4
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
BASE_FOLDER=$(dirname $(readlink -f $0))"/";
|
BASE_FOLDER=$(dirname $(readlink -f $0))"/";
|
||||||
VERSION=$(git tag --list | sort -V | tail -n1 | sed -e "s/^v//");
|
VERSION=$(git tag --list | sort -V | tail -n1 | sed -e "s/^v//");
|
||||||
file_last_published="${BASE_FOLDER}last.published";
|
file_last_published="${BASE_FOLDER}last.published";
|
||||||
|
go_flag="$1";
|
||||||
|
|
||||||
if [ -z "${VERSION}" ]; then
|
if [ -z "${VERSION}" ]; then
|
||||||
echo "Version must be set in the form x.y.z without any leading characters";
|
echo "Version must be set in the form x.y.z without any leading characters";
|
||||||
@@ -35,6 +36,13 @@ source .env.deploy;
|
|||||||
cd -;
|
cd -;
|
||||||
set +o allexport;
|
set +o allexport;
|
||||||
|
|
||||||
|
if [ "${go_flag}" != "go" ]; then
|
||||||
|
echo "No go flag given";
|
||||||
|
echo "Would publish ${VERSION} on ${file_last_published}";
|
||||||
|
echo "[END]";
|
||||||
|
exit;
|
||||||
|
fi;
|
||||||
|
|
||||||
echo "[START]";
|
echo "[START]";
|
||||||
# gitea
|
# gitea
|
||||||
if [ ! -z "${GITEA_URL_DL}" ] && [ ! -z "${GITEA_URL_PUSH}" ] &&
|
if [ ! -z "${GITEA_URL_DL}" ] && [ ! -z "${GITEA_URL_PUSH}" ] &&
|
||||||
|
|||||||
@@ -34,29 +34,29 @@ class Support
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* prints a html formatted (pre) array
|
* prints a html formatted (pre) data
|
||||||
*
|
*
|
||||||
* @param array<mixed> $array any array
|
* @param mixed $data any data
|
||||||
* @param bool $no_html default add <pre>
|
* @param bool $no_html default add <pre>
|
||||||
* @return string formatted array for output with <pre> tag added
|
* @return string formatted array for output with <pre> tag added
|
||||||
*/
|
*/
|
||||||
public static function printAr(array $array, bool $no_html = false): string
|
public static function printAr(mixed $data, bool $no_html = false): string
|
||||||
{
|
{
|
||||||
return $no_html ?
|
return $no_html ?
|
||||||
print_r($array, true) :
|
print_r($data, true) :
|
||||||
'<pre>' . print_r($array, true) . '</pre>';
|
'<pre>' . print_r($data, true) . '</pre>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* alternate name for printAr function
|
* alternate name for printAr function
|
||||||
*
|
*
|
||||||
* @param array<mixed> $array any array
|
* @param mixed $data any array
|
||||||
* @param bool $no_html default add <pre>
|
* @param bool $no_html default add <pre>
|
||||||
* @return string formatted array for output with <pre> tag added
|
* @return string formatted array for output with <pre> tag added
|
||||||
*/
|
*/
|
||||||
public static function printArray(array $array, bool $no_html = false): string
|
public static function printArray(mixed $data, bool $no_html = false): string
|
||||||
{
|
{
|
||||||
return self::printAr($array, $no_html);
|
return self::printAr($data, $no_html);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,12 +65,12 @@ class Support
|
|||||||
* Do not use this without using it in a string in debug function
|
* Do not use this without using it in a string in debug function
|
||||||
* Note: for full data debug dumps use Support::dumpVar()
|
* Note: for full data debug dumps use Support::dumpVar()
|
||||||
*
|
*
|
||||||
* @param array<mixed> $a Array to format
|
* @param mixed $data Data to print
|
||||||
* @return string print_r formated
|
* @return string print_r formated
|
||||||
*/
|
*/
|
||||||
public static function prAr(array $a): string
|
public static function prAr(mixed $data): string
|
||||||
{
|
{
|
||||||
return self::printAr($a, true);
|
return self::printAr($data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1082,12 +1082,12 @@ class Logging
|
|||||||
* But this does not wrap it in <pre></pre>
|
* But this does not wrap it in <pre></pre>
|
||||||
* Do not use this without using it in a string in debug function
|
* Do not use this without using it in a string in debug function
|
||||||
*
|
*
|
||||||
* @param array<mixed> $a Array to format
|
* @param mixed $data Data to format
|
||||||
* @return string print_r formated
|
* @return string print_r formated
|
||||||
*/
|
*/
|
||||||
public function prAr(array $a): string
|
public function prAr(mixed $data): string
|
||||||
{
|
{
|
||||||
return Support::printArray($a, true);
|
return Support::printArray($data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user