Commit 002f9393 authored by ZappeL's avatar ZappeL
Browse files

fixed: do_update

parent b8100d1a
......@@ -46,9 +46,9 @@ do_show() {
for bin in {vala,valac,vapigen,vala-gen-introspect}; do
if [[ -L "${EROOT}/usr/bin/${bin}" ]]; then
local link=$(readlink "${EROOT}/usr/bin/${bin}")
write_kv_list_entry "${EROOT}/usr/bin/${link%/}" ""
write_kv_list_entry "${bin}:" "${EROOT}/usr/bin/${link%/}"
else
write_kv_list_entry "(unset)" ""
write_kv_list_entry "${bin}:" "(unset)"
fi
done
}
......@@ -109,10 +109,10 @@ describe_update() {
}
do_update() {
local i targets=( $(find_targets vala) )
target=${targets[-1]}
for bin in {vala,valac,vapigen,vala-gen-introspect}; do
local i targets=( $(find_targets ${bin}) )
target=${targets[-1]}
if [[ -L ${EROOT}/usr/bin/${bin} ]]; then
remove_symlink "${bin}" || die -q "Couldn't remove existing symlink"
set_symlink "${bin}" "${target}" || die -q "Couldn't set a new symlink"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment