SHA256
1
0
forked from pool/grub2

Accepting request 265012 from home:Andreas_Schwab:Factory

- grub2-snapper-plugin.sh: fix use of printf without format string; fix
  quoting

OBS-URL: https://build.opensuse.org/request/show/265012
OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=132
This commit is contained in:
Michael Chang 2014-12-16 04:19:32 +00:00 committed by Git OBS Bridge
parent c5fc2a08e0
commit f3ff7e32b5
2 changed files with 12 additions and 4 deletions

View File

@ -98,6 +98,7 @@ snapper_snapshots_cfg_refresh () {
return
fi
cs=
for s_dir in ${snapper_snapshot_path}/*; do
snapshot="${s_dir}/snapshot"
@ -107,7 +108,8 @@ snapper_snapshots_cfg_refresh () {
continue
fi
if [ -r "${s_dir}/info.xml" -a -r "${s_dir}/snapshot/boot/grub2/grub.cfg" ]; then
cs="${s_dir}\n${cs}"
cs="${s_dir}
${cs}"
fi
done
@ -115,14 +117,14 @@ snapper_snapshots_cfg_refresh () {
hk=""
[ -z "$hotkey" ] || hk="--hotkey=s"
for c in `printf "${cs}\n" | sort -Vr`; do
for c in $(printf '%s' "${cs}" | sort -Vr); do
if ! snapshot_submenu "$c" > "${c}/${snapshot_submenu_name}"; then
rm -f "${c}/${snapshot_submenu_name}"
continue
fi
snapshot_cfg="${snapshot_cfg}
if [ -f "$c/${snapshot_submenu_name}"; then
source "$c/${snapshot_submenu_name}"
if [ -f \"$c/${snapshot_submenu_name}\"; then
source \"$c/${snapshot_submenu_name}\"
fi"
done

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 11 11:20:13 UTC 2014 - schwab@suse.de
- grub2-snapper-plugin.sh: fix use of printf without format string; fix
quoting
-------------------------------------------------------------------
Wed Dec 10 09:12:47 UTC 2014 - schwab@suse.de