/ sd-before-copy
sd-before-copy
 1  #!/bin/zsh
 2  #
 3  # sd-before-copy - Pre-backup script for SuperDuper! to run the backup vortex
 4  #
 5  # Usage: sd-before-copy (called automatically by SuperDuper!)
 6  
 7  # Redirect stderr to stdout because SuperDuper! interprets any output to stderr as a failure.
 8  # Mystifying decision but whatever. Easy to work around it.
 9  # For some reason we have to explicitly set LC_CTYPE for jsonpretty to work in the feedbin plugin.
10  # Again, whatever.
11  sudo -i -u sjs <<<'source ~/.zshrc && cd ~/Developer/vortex && LC_CTYPE=en_US.UTF-8 script/vortex ingest' 2>&1