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