Skip to content

Commit

Permalink
Fix exitcode not being set as global in zypper_install proc
Browse files Browse the repository at this point in the history
  • Loading branch information
simoniz0r committed May 1, 2023
1 parent f5f6b26 commit 4a81e8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zow.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package require cmdline
http::register https 443 [list ::tls::socket -autoservername true]

# set version
set version "0.2.06"
set version "0.2.07"

# proc that uses ANSI escapes to set colors
proc color {foreground text} {
Expand Down Expand Up @@ -340,6 +340,8 @@ proc zypper_search_obs {type arguments} {

# proc that decides which repos to install from
proc zypper_install {repos packages} {
# set necessary vars as global
global exitcode
# get colors for output
color_config {/etc/zypp/zypper.conf}
switch -exact -- $repos {
Expand Down

0 comments on commit 4a81e8b

Please sign in to comment.