Quick Install

From ArchBang

Jump to: navigation, search
Line 8: Line 8:
   #
   #
    
    
 +
  # Device mounted?
 +
  if ! mountpoint -q /mnt; then
 +
        echo "Make sure target device is mounted..."
 +
        exit 1
 +
  fi
 +
   # Are we root?
   # Are we root?
   [[ ${EUID} -ne 0 ]] && echo "::This script must be run as root::" && exit 1
   [[ ${EUID} -ne 0 ]] && echo "::This script must be run as root::" && exit 1

Revision as of 07:39, 25 March 2016

Personal tools