Accepting request 263434 from home:Ledest:bashisms

Replace 'echo -e' command in grub2-snapper-plugin.sh script to 'printf' command. '-e' option of 'echo' command may be unsupported in some POSIX-complete shells.

OBS-URL: https://build.opensuse.org/request/show/263434
OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=128
This commit is contained in:
Jiri Slaby 2014-12-04 09:19:39 +00:00 committed by Git OBS Bridge
parent fbdab156e4
commit c34aa24e3a
2 changed files with 8 additions and 1 deletions

View File

@ -115,7 +115,7 @@ snapper_snapshots_cfg_refresh () {
hk=""
[ -z "$hotkey" ] || hk="--hotkey=s"
for c in `echo -e "${cs}" | sort -Vr`; do
for c in `printf "${cs}\n" | sort -Vr`; do
if ! snapshot_submenu "$c" > "${c}/${snapshot_submenu_name}"; then
rm -f "${c}/${snapshot_submenu_name}"
continue

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Nov 29 18:26:00 UTC 2014 - Led <ledest@gmail.com>
- Replace 'echo -e' command in grub2-snapper-plugin.sh script to
'printf' command. '-e' option of 'echo' command may be
unsupported in some POSIX-complete shells.
-------------------------------------------------------------------
Fri Nov 14 16:06:00 UTC 2014 - Led <ledest@gmail.com>