Created
March 16, 2019 14:36
-
-
Save mccun934/e51bfd1bef013f3ced4ea7b676e72610 to your computer and use it in GitHub Desktop.
republish all content views in a loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; | |
do | |
hammer --no-headers --csv content-view list | grep -v "Default Org" | awk -F, '{print $1}' | xargs -I arg1 -n 1 hammer -u admin -p changeme content-view publish --id arg1; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment