1 2 3 4 5 6 7 8
#!/bin/sh if [ "$USER" != "<%= @mgaadv_login %>" ]; then echo "This script must be run as the <%= @mgaadv_login %> user." >&2 exit 1 fi exec sudo <%= @move_script %> "$@"