Sort actions by idempotence before automating them
Classify shell-script actions as repeat-safe, guarded, or risky so automation can be rerun safely.
Sort each action by repeat-safety before putting it in a retrying script. Repeat-safe as written Safe only with a guard Needs dry-run or confirmation mkdir -p "$cache_dir" chmod 0640 "$config" to enforce a known mode Move a symlink with ln -sfn "$release" current Create a service account if it does not already exist Append a config line only if the exact line is absent Restart a worker only when config checksum changed Delete files selected by a new find predicate Remove database rows matching a broad customer filter Rotate production credentials
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in