Skip to content

Instantly share code, notes, and snippets.

@andr-ew
Created January 7, 2023 05:31
Show Gist options
  • Save andr-ew/7e7b3b4a93743296ce2fd02d77b84e3f to your computer and use it in GitHub Desktop.
Save andr-ew/7e7b3b4a93743296ce2fd02d77b84e3f to your computer and use it in GitHub Desktop.
norns filesync script (maiden-remote-repl + rsync)
#!/bin/bash
sshpass -p "sleep" rsync -azP ~/dust/code/ --delete --exclude .git we@norns.local:/home/we/dust/code/
if [ -z "$1" ]
then
maiden-remote-repl send 'norns.script.load(norns.state.script)'
else
maiden-remote-repl send --host $1 'norns.script.load(norns.state.script)'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment