refactor(sync): sudo xargs with verbose output so we see which files had their owner changed
This commit is contained in:
		| @@ -70,7 +70,7 @@ if we_are_ahead || [[ "${do_force}" == 'true' ]]; then | |||||||
|         if [[ "${do_force}" == 'true' ]]; then |         if [[ "${do_force}" == 'true' ]]; then | ||||||
|             sudo --preserve-env=SSH_AUTH_SOCK su --shell /bin/bash --command 'cd; sudo --preserve-env=SSH_AUTH_SOCK git reset --hard' "${account}" |             sudo --preserve-env=SSH_AUTH_SOCK su --shell /bin/bash --command 'cd; sudo --preserve-env=SSH_AUTH_SOCK git reset --hard' "${account}" | ||||||
|         fi |         fi | ||||||
|         sudo --preserve-env=SSH_AUTH_SOCK su --shell /bin/bash --command 'cd; sudo --preserve-env=SSH_AUTH_SOCK git pull; sudo find '"'"'.'"'"' \( -not -user '"${account}"' -or -not -group '"${account}"' \) -print0 | xargs --no-run-if-empty --null -I '"'"'{}'"'"' chown '"${account}"':'"${account}"' '"'"'{}'"'"'' "${account}" |         sudo --preserve-env=SSH_AUTH_SOCK su --shell /bin/bash --command 'cd; sudo --preserve-env=SSH_AUTH_SOCK git pull; sudo find '"'"'.'"'"' \( -not -user '"${account}"' -or -not -group '"${account}"' \) -print0 | sudo xargs --no-run-if-empty --null -I '"'"'{}'"'"' chown --verbose '"${account}"':'"${account}"' '"'"'{}'"'"'' "${account}" | ||||||
|     done |     done | ||||||
| else | else | ||||||
|     pprint 'Nothing to do' |     pprint 'Nothing to do' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user