diff options
author | A person <agooglygooglr@gmail.com> | 2024-06-10 22:38:19 -0400 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-06-11 17:01:51 +0200 |
commit | dfa7dc6659755b7a8385aad5003fd80483dd4ffe (patch) | |
tree | 4644056c6eef43103dcaeab53d1a3d9cfe3a15cc /uninstall.sh | |
parent | e43934e2d2219bdd9a99c78463aa47cfc0404dcd (diff) |
Migrate to Meson build system
Diffstat (limited to 'uninstall.sh')
-rwxr-xr-x | uninstall.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/uninstall.sh b/uninstall.sh index 9457d1f..b8aac26 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,9 +1,10 @@ -#!/bin/sh +#!/bin/sh -e + +script_dir=$(dirname "$0") +cd "$script_dir" [ $(id -u) -ne 0 ] && echo "You need root privileges to run the uninstall script" && exit 1 -rm -f "/usr/bin/gsr-kms-server" -rm -f "/usr/bin/gpu-screen-recorder" -rm -f "/usr/lib/systemd/user/gpu-screen-recorder.service" +ninja -C build uninstall -echo "Successfully uninstalled gpu-screen-recorder"
\ No newline at end of file +echo "Successfully uninstalled gpu-screen-recorder" |