diff options
| author | alex <alex@pdp7.net> | 2024-03-23 20:04:24 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2024-03-23 20:04:24 +0100 |
| commit | e3d4b64d7e255657ac8bfa9690ba0cfa8a5a9115 (patch) | |
| tree | f3d76398fcec73e87a6b473fb361899c854a9141 /scripts/p7s | |
| parent | 20cc27accf0a3f812d3b8f3fad88b02138a348b3 (diff) | |
Add setup_ubpkg
Diffstat (limited to 'scripts/p7s')
| -rw-r--r-- | scripts/p7s/ubpkg.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/p7s/ubpkg.py b/scripts/p7s/ubpkg.py new file mode 100644 index 00000000..72495f41 --- /dev/null +++ b/scripts/p7s/ubpkg.py @@ -0,0 +1,11 @@ +import os +import pathlib +import shutil + +import httpx + + +def setup_ubpkg(): + ubpkg = pathlib.Path.home() / ".local" / "bin" / "ubpkg" + ubpkg.write_bytes(httpx.get("https://github.com/alexpdp7/ubpkg/releases/latest/download/ubpkg-linux", follow_redirects=True).content) + os.chmod(ubpkg, 0o700) |
