Skip to content

Commit

Permalink
Fixed potential bug related to time reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxbud committed May 16, 2021
1 parent 43c758c commit 743cde6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions aerman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ _SCRIPTDIR="$(dirname "$_SCRIPT")"
_CLI_DEPS="jq rsync sha256sum tar wget"
_GUI_DEPS="zenity"

_NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ")

_DEFAULT_PATCH_REPO='https://api.github.com/repos/Foxbud/aerpatch'
if [ -n "$AER_PATCH_REPO" ]; then
_PATCH_REPO="$AER_PATCH_REPO"
Expand Down Expand Up @@ -93,6 +91,10 @@ _EXECDIFF="${_ORIGEXEC}Diff"

# Utility functions.

_now() {
echo $(date -u +"%Y-%m-%dT%H:%M:%SZ")
}

_ensure_deps() {
for _DEP in $1; do
_DEPVAR=_${_DEP^^}
Expand Down Expand Up @@ -419,7 +421,7 @@ _pack_create() {
fi
echo "# ================================" >>"$_PACKFILE"
echo "# MODPACK: $_PACKNAME" >>"$_PACKFILE"
echo "# CREATED: $_NOW" >>"$_PACKFILE"
echo "# CREATED: $(_now)" >>"$_PACKFILE"
echo "# TOOL: $_SCRIPTNAME ($_VERSION)" >>"$_PACKFILE"
echo "# ================================" >>"$_PACKFILE"
echo >>"$_PACKFILE"
Expand Down

0 comments on commit 743cde6

Please sign in to comment.