mirror of
https://github.com/containers/ramalama.git
synced 2026-02-05 15:47:26 +01:00
So we can remove ramalama via various install techniques Signed-off-by: Eric Curtin <ecurtin@redhat.com>
22 lines
343 B
Bash
Executable File
22 lines
343 B
Bash
Executable File
#!/bin/bash
|
|
|
|
available() {
|
|
command -v "$1" >/dev/null
|
|
}
|
|
|
|
main() {
|
|
set -e -o pipefail
|
|
local rootdirs=("/opt/homebrew" "/usr/local" "/usr" "")
|
|
local rootdir
|
|
for rootdir in "${rootdirs[@]}"; do
|
|
rm -rf "$rootdir/bin/ramalama" "$rootdir/share/ramalama"
|
|
done
|
|
|
|
if available pipx; then
|
|
pipx uninstall ramalama
|
|
fi
|
|
}
|
|
|
|
main "$@"
|
|
|