From 5ff81a4091c0e23874a4e24db566dc7fb66265dd Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sat, 4 Sep 2021 23:31:00 +0200 Subject: [PATCH] Replace 'dirname find' by 'find -exec dirname' --- dotfiles/shell/aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index 2f125ad..aa1e69e 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -66,7 +66,7 @@ clitip() { xmlstarlet unesc | fmt -80 | iconv -t US } -#GIT_REPOS=($(dirname $(find ~ -name .git -type d -not -path '*/.vim/*' -and -not -path '*/.local/*' -and -not -path '*/builds/*'))) +#GIT_REPOS=($(find ~ -name .git -type d -not -path '*/.vim/*' -and -not -path '*/.local/*' -and -not -path '*/builds/*' -exec dirname {} \;)) GIT_REPOS=(~/src/* ~/setup-cockpit ~/tssr ~/.password-store) cockpit() { # enable pass-like commands (ex: cockpit git push) @@ -90,7 +90,7 @@ system_update() { aur_update() { local start_dir="$PWD" - for repo in $(dirname $(find ~/builds -name .git -type d)); do + for repo in $(find ~/builds -name .git -type d -exec dirname {} \;); do cd && cd "$repo" && git fetch -q local unpulled=$(git log --pretty=format:'%h' ..@{u} | wc -c) if [ "$unpulled" -eq 0 ]; then