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:
parent
c5fc2a08e0
commit
f3ff7e32b5
@ -98,6 +98,7 @@ snapper_snapshots_cfg_refresh () {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cs=
|
||||||
for s_dir in ${snapper_snapshot_path}/*; do
|
for s_dir in ${snapper_snapshot_path}/*; do
|
||||||
|
|
||||||
snapshot="${s_dir}/snapshot"
|
snapshot="${s_dir}/snapshot"
|
||||||
@ -107,7 +108,8 @@ snapper_snapshots_cfg_refresh () {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if [ -r "${s_dir}/info.xml" -a -r "${s_dir}/snapshot/boot/grub2/grub.cfg" ]; then
|
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
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
@ -115,14 +117,14 @@ snapper_snapshots_cfg_refresh () {
|
|||||||
hk=""
|
hk=""
|
||||||
[ -z "$hotkey" ] || hk="--hotkey=s"
|
[ -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
|
if ! snapshot_submenu "$c" > "${c}/${snapshot_submenu_name}"; then
|
||||||
rm -f "${c}/${snapshot_submenu_name}"
|
rm -f "${c}/${snapshot_submenu_name}"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
snapshot_cfg="${snapshot_cfg}
|
snapshot_cfg="${snapshot_cfg}
|
||||||
if [ -f "$c/${snapshot_submenu_name}"; then
|
if [ -f \"$c/${snapshot_submenu_name}\"; then
|
||||||
source "$c/${snapshot_submenu_name}"
|
source \"$c/${snapshot_submenu_name}\"
|
||||||
fi"
|
fi"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -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
|
Wed Dec 10 09:12:47 UTC 2014 - schwab@suse.de
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user