Korrektur der intention, vim hat mich verschaukelt ...

This commit is contained in:
Daniel Heule 2013-12-04 14:50:11 +01:00
parent 6a68c14a76
commit 808ea30634

View file

@ -65,27 +65,27 @@ fi
case "$state" in
present)
if [ -z "$desc" ] || [ -z "$uri" ]; then
echo "parameter repo_desc and repo_uri for $state needed" >&2
exit 4
fi
echo "parameter repo_desc and repo_uri for $state needed" >&2
exit 4
fi
if [ -z "$repo_id" ]; then
echo zypper $zypper_def_opts addrepo "'$uri'" "'$desc'"
fi
echo zypper $zypper_def_opts addrepo "'$uri'" "'$desc'"
fi
;;
absent)
if [ ! -z "$act_id" ]; then
echo zypper $zypper_def_opts removerepo $act_id
fi
fi
;;
enabled)
if [ ! -z "$act_id" ]; then
echo zypper $zypper_def_opts modifyrepo -e $act_id
fi
fi
;;
disabled)
if [ ! -z "$act_id" ]; then
echo zypper $zypper_def_opts modifyrepo -d $act_id
fi
fi
;;
*)
echo "Unknown state: $state" >&2