1 2 3 4 5
#!/bin/bash for codename in jessie stretch; do salt -C "G@lsb_distrib_codename:${codename}" -b 1 pkg.upgrade dist_upgrade=True salt -C "G@lsb_distrib_codename:${codename}" -b 2 cmd.run 'git -C /opt/diff-so-fancy pull' done