diff --git a/setup b/setup index df939ed..d4ad886 100755 --- a/setup +++ b/setup @@ -334,8 +334,13 @@ install_fd() { install_rofi_greenclip() { install_package rofi - get_internet_file "https://github.com/erebe/greenclip/releases/download/v4.2/greenclip" /tmp/greenclip - sudo install /tmp/greenclip /usr/local/bin + ( + local tmp + tmp=$(mktemp -d) + trap 'rm -rf -- "$tmp"' EXIT + get_internet_file "https://github.com/erebe/greenclip/releases/download/v4.2/greenclip" "$tmp/greenclip" + sudo install "$tmp/greenclip" /usr/local/bin + ) } install_kitty_terminfo() { @@ -546,8 +551,11 @@ auto_start_terminal() { } create_gruvbox_terminal_profile() { - get_prestobuntu_file "create-gruvbox" /tmp/create-gruvbox - bash /tmp/create-gruvbox + local tmp + tmp=$(mktemp -d) + get_prestobuntu_file "create-gruvbox" "$tmp/create-gruvbox" + bash "$tmp/create-gruvbox" + rm -rf "$tmp" } _systemctl() { sudo systemctl "$@" ; }