diff options
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" |