Replace 'dirname find' by 'find -exec dirname'
This commit is contained in:
parent
62c94c93c9
commit
5ff81a4091
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ clitip() {
|
||||||
xmlstarlet unesc | fmt -80 | iconv -t US
|
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)
|
GIT_REPOS=(~/src/* ~/setup-cockpit ~/tssr ~/.password-store)
|
||||||
|
|
||||||
cockpit() { # enable pass-like commands (ex: cockpit git push)
|
cockpit() { # enable pass-like commands (ex: cockpit git push)
|
||||||
|
@ -90,7 +90,7 @@ system_update() {
|
||||||
|
|
||||||
aur_update() {
|
aur_update() {
|
||||||
local start_dir="$PWD"
|
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
|
cd && cd "$repo" && git fetch -q
|
||||||
local unpulled=$(git log --pretty=format:'%h' ..@{u} | wc -c)
|
local unpulled=$(git log --pretty=format:'%h' ..@{u} | wc -c)
|
||||||
if [ "$unpulled" -eq 0 ]; then
|
if [ "$unpulled" -eq 0 ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue