Korrektur der intention, vim hat mich verschaukelt ...
This commit is contained in:
parent
6a68c14a76
commit
808ea30634
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue