Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Dec 8, 2023
1 parent 37b7a4c commit 35891ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 49 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/auto-update-windows.yml

This file was deleted.

11 changes: 1 addition & 10 deletions mxpy-up.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,7 @@ def install_mxpy(exact_version: str, from_branch: str, verbose: bool):
st = os.stat(shortcut_path)
os.chmod(shortcut_path, st.st_mode | stat.S_IEXEC)

if operating_system == "windows":
update_shortcut_path = sdk_path / "mxpy-update.exe"
else:
update_shortcut_path = sdk_path / "mxpy-update"
update_shortcut_path = sdk_path / "mxpy-update"

try:
update_shortcut_path.unlink()
Expand Down Expand Up @@ -225,12 +222,6 @@ def get_mxpy_shortcut_content(operating_system: str):


def get_mxpy_update_shortcut_content(operating_system: str):
if operating_system == "windows":
return f"""#!/bin/sh
curl.exe --output mxpy-up.py --url https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/mxpy-update/mxpy-up.py
python mxpy-up.py --not-interactive
"""

return f"""#!/bin/sh
wget -O mxpy-up.py https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/mxpy-update/mxpy-up.py && python3 mxpy-up.py --not-interactive "$@"
"""
Expand Down

0 comments on commit 35891ed

Please sign in to comment.