#!/usr/bin/bash if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi qvm-copy-to-vm emacs-salt /srv/user_salt qvm-run emacs-salt 'mv /home/user/Documents/salt-repo/.git /tmp/salt.git' qvm-run emacs-salt 'rm -fr /home/user/Documents/salt-repo/*' qvm-run emacs-salt 'mv /tmp/salt.git /home/user/Documents/salt-repo/.git' qvm-run emacs-salt 'mv /home/user/QubesIncoming/dom0/user_salt/* /home/user/Documents/salt-repo/' qvm-run emacs-salt 'rm -fr /home/user/QubesIncoming/dom0/user_salt'