Skip to content

Commit

Permalink
rm: Ignore nonexistent ~/.local/bin (#1073)
Browse files Browse the repository at this point in the history
Fixes #1072
  • Loading branch information
osalbahr authored Feb 1, 2024
1 parent 038a843 commit ad542eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrobox-rm
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ delete_container() {

IFS='@'
# Remove exported binaries from this container in default path
binary_files="$(grep -rl "# distrobox_binary" "${HOME}/.local/bin" |
binary_files="$(grep -rl "# distrobox_binary" "${HOME}/.local/bin" 2> /dev/null |
xargs -I{} grep -le "# name: ${container_name}$" "{}" |
xargs -I{} printf "%s@" {} 2> /dev/null || :)"
for file in ${binary_files}; do
Expand Down

0 comments on commit ad542eb

Please sign in to comment.