Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnTew committed Jan 14, 2025
1 parent f754323 commit 67d89b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion etc/script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ PROJECT_HOME="${PWD}/"
CONF="${PROJECT_HOME}/etc/conf/kiwi.conf"

# Get build time and commit ID
source ./get_gitinfo_func.sh
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/get_gitinfo_func.sh"
GIT_INFO=$(get_gitinfo)
BUILD_TIME=$(echo $GIT_INFO | awk '{print $1}')
SHORT_COMMIT_ID=$(echo $GIT_INFO | awk '{print $2}')
Expand Down
3 changes: 2 additions & 1 deletion etc/script/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ CMAKE_FLAGS=""
MAKE_FLAGS=""
PREFIX="build"

source ../get_gitinfo_func.sh
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/../get_gitinfo_func.sh"
GIT_INFO=$(get_gitinfo)
BUILD_TIME=$(echo $GIT_INFO | awk '{print $1}')
SHORT_COMMIT_ID=$(echo $GIT_INFO | awk '{print $2}')
Expand Down

0 comments on commit 67d89b4

Please sign in to comment.