#!/usr/bin/env bash action=${action:?} # if action is run or completions, do nothing if [ "$action" = "run" ] || [ "$action" = "completions" ] then exit 0 fi clean=${args[--clean]:-} target=${args[target]:?} if [ "$action" = "exe" ] then target="$HOME/.local/bin/$target" fi if [ -n "$clean" ] || [ -n "${AUTOINSTALL_CLEAN:-}" ] then echo "Cleaning $target" rm -rf "$target" fi