diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-30 11:43:30 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-30 11:43:30 +0000 |
commit | a9f46c04eda31e99815a4217c7706db7dfbb4b06 (patch) | |
tree | a13837119e720ea167ea107e975d8656224f9dcc | |
parent | 779df49698543a12dc5634a13f6cb04402f4359a (diff) | |
download | cpt-a9f46c04eda31e99815a4217c7706db7dfbb4b06.tar.gz |
kiss: Fix log naming. Closes #102
FossilOrigin-Name: 9c30829fa4d8ca5485ca754a92f38fb4b4c5db8763d43b663c83791f9b347bd5
-rwxr-xr-x | kiss | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -569,11 +569,11 @@ pkg_build() { log "$pkg" "Build failed" pkg_clean kill 0 - } } 2>&1 | tee "$log_dir/$pkg-$pid-$time" > /dev/tty + } } 2>&1 | tee "$log_dir/$pkg-$time-$pid" > /dev/tty # Delete the log file if the build succeeded to prevent # the directory from filling very quickly with useless logs. - [ "$KISS_DEBUG" = 1 ] || rm -f "$log_dir/$pkg-$pid-$time" + [ "$KISS_DEBUG" = 1 ] || rm -f "$log_dir/$pkg-$time-$pid" # Copy the repository files to the package directory. # This acts as the database entry. @@ -1304,7 +1304,7 @@ main() { # Store the date and time of script invocation to be used as the name # of the log files the package manager creates uring builds. - time=$(date '+%d-%m-%Y-%H:%M') + time=$(date '+%Y-%m-%d-%H:%M') # This allows for automatic setup of a KISS chroot and will # do nothing on a normal system. |