Skip to content

Commit

Permalink
fixes an issue with auto updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekultek committed Nov 24, 2022
1 parent bc7c854 commit 38df352
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def cmd_parser():
hidden = parser.add_argument_group()
hidden.add_argument("--clean", action="store_true", dest="cleanHomeFolder", help=SUPPRESS)
hidden.add_argument("--i-am-teapot", action="store_true", dest="iAmTeapot", default=False, help=SUPPRESS)
hidden.add_argument("--skip-update", action="store_true", dest="skipAutoUpdate", default=False, help=SUPPRESS)

opts = parser.parse_args()

Expand Down
4 changes: 2 additions & 2 deletions lib/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
except:
pass

# version number <major>.<minor>.<commit>
VERSION = "2.1.4.1"
# version number <major>.<minor>.<patch>.<commit>
VERSION = "2.1.5.2"

# version string
VERSION_TYPE = "($dev)" if VERSION.count(".") > 1 else "($stable)"
Expand Down
7 changes: 5 additions & 2 deletions trigger/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,11 @@ def main():
# time.sleep(15)
# info("continuing with whatwaf")

# gotta find a better way to check for updates so ima hotfix it
auto_update()
if not opt.skipAutoUpdate:
# gotta find a better way to check for updates so ima hotfix it
auto_update()
else:
warn("auto updating will be skipped this run")

format_opts = [opt.sendToYAML, opt.sendToCSV, opt.sendToJSON]
if opt.formatOutput:
Expand Down

0 comments on commit 38df352

Please sign in to comment.