cleanup of variable quoting

This commit is contained in:
Daniel Heule 2013-12-04 14:58:15 +01:00
parent 808ea30634
commit ea33b093f0

View file

@ -56,9 +56,9 @@ enabled_repo_ids="$(cat "$__object/explorer/enabled_repo_ids")"
repo_id="$(cat "$__object/explorer/repo_id")" repo_id="$(cat "$__object/explorer/repo_id")"
act_id="" act_id=""
if grep -q $id $__object/explorer/all_repo_ids; then if grep -q "$id" "$__object/explorer/all_repo_ids"; then
act_id="$id" act_id="$id"
elif grep -q $repo_id $__object/explorer/all_repo_ids; then elif grep -q "$repo_id" "$__object/explorer/all_repo_ids"; then
act_id="$repo_id" act_id="$repo_id"
fi fi
@ -74,17 +74,17 @@ case "$state" in
;; ;;
absent) absent)
if [ ! -z "$act_id" ]; then if [ ! -z "$act_id" ]; then
echo zypper $zypper_def_opts removerepo $act_id echo zypper $zypper_def_opts removerepo "'$act_id'"
fi fi
;; ;;
enabled) enabled)
if [ ! -z "$act_id" ]; then if [ ! -z "$act_id" ]; then
echo zypper $zypper_def_opts modifyrepo -e $act_id echo zypper $zypper_def_opts modifyrepo -e "'$act_id'"
fi fi
;; ;;
disabled) disabled)
if [ ! -z "$act_id" ]; then if [ ! -z "$act_id" ]; then
echo zypper $zypper_def_opts modifyrepo -d $act_id echo zypper $zypper_def_opts modifyrepo -d "'$act_id'"
fi fi
;; ;;
*) *)