[fix] cosmetic
This commit is contained in:
parent
031aad7aa3
commit
756cc3957a
@ -9,13 +9,14 @@ CHANGELOG=/etc/changelog
|
|||||||
msg(){ echo -e "$@"; }
|
msg(){ echo -e "$@"; }
|
||||||
panic(){ msg "${@} Exiting."; exit 1;}
|
panic(){ msg "${@} Exiting."; exit 1;}
|
||||||
template(){
|
template(){
|
||||||
t=$(mktemp)
|
local t=$(mktemp)
|
||||||
cat << HEREDOC >$t
|
cat << HEREDOC >$t
|
||||||
|
|
||||||
$(date "+%Y-%m-%d %H:%M") $CHANGELOG_USERNAME
|
$(date "+%Y-%m-%d %H:%M") $CHANGELOG_USERNAME
|
||||||
|
|
||||||
$( echo -e "$@"|sed 's/^/ /' )
|
$( echo -e "$@"|sed 's/^/ /' )
|
||||||
HEREDOC
|
HEREDOC
|
||||||
|
|
||||||
[[ -f $CHANGELOG ]] && cat /etc/changelog >> $t
|
[[ -f $CHANGELOG ]] && cat /etc/changelog >> $t
|
||||||
cat "$t" > $CHANGELOG
|
cat "$t" > $CHANGELOG
|
||||||
rm -f "$t"
|
rm -f "$t"
|
||||||
|
Loading…
Reference in New Issue
Block a user