mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
mkspec-wrapper.sh: Add OS id to $INSTALL_LOG
Add the name of the operating system ID as taken from /etc/os-release to $INSTALL_LOG. This should allow for easier post-mortem debugging if multiple builds used the same file in /tmp and possibly also prevent conflicts. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
210f58f1f8
commit
ca6f27d2f0
1 changed files with 2 additions and 2 deletions
|
|
@ -75,8 +75,8 @@ shift
|
|||
done
|
||||
shift
|
||||
|
||||
ID=`whoami`
|
||||
[ ! "$INSTALL_LOG" ] && INSTALL_LOG=/tmp/pkg-build-$ID-$NAME/install.log
|
||||
os=$(sed '/^ID=/ !d; s/^ID=//; s/"//g' /etc/os-release)
|
||||
[ ! "$INSTALL_LOG" ] && INSTALL_LOG=/tmp/pkg-build-$ID-$(id -un)-$os/install.log
|
||||
|
||||
MKSPEC_SH="$1"
|
||||
shift
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue