Skip to content

Commit

Permalink
More "move spaces to right places"
Browse files Browse the repository at this point in the history
  • Loading branch information
Olf0 authored Apr 13, 2023
1 parent 07713ce commit effdeaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/sailfishos-chum-gui-installer
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ systemd-cat -t "$called" -p 7 printf '%s\n' "$logentry"

ssus="$(ssu s | grep -iv 'UID:\? ')"; logentry='`ssu status`, UID omitted:'
printf '\n%s\n%s\n' "$(date -Iseconds) $logentry" "$ssus"
systemd-cat -t "$called" -p 7 printf '%s %s' "$logentry" "$(printf '%s' "$ssus" | sed 's/$/, /g' | tr -d '\n')"
systemd-cat -t "$called" -p 7 printf '%s %s' "$logentry" "$(printf '%s' "$ssus" | sed 's/$/, /g' | tr -d '\n')"

ssulr="$(ssu lr | fgrep chum | tr -s ' ')"; logentry='"chum" entries from `ssu lr`:'
printf '\n%s\n%s\n' "$(date -Iseconds) $logentry" "$ssulr"
systemd-cat -t "$called" -p 7 printf '%s %s' "$logentry" "$(printf '%s' "$ssulr" | sed -e 's/^ - / /g' -e 's/ ... / /g' | tr -s '\n' ',')"
systemd-cat -t "$called" -p 7 printf '%s%s' "$logentry" "$(printf '%s' "$ssulr" | sed -e 's/^ - / /g' -e 's/ ... / /g' | tr -s '\n' ',')" # Second string start with a space due to substitution by `sed`

# Provide RPM with a little time to proceed finishing the RPM transaction,
# which called this script asynchronously, because pkcon might fail
Expand Down

0 comments on commit effdeaa

Please sign in to comment.