#!/bin/bash function userExists() { if id "$1" &>/dev/null; then return 0 else return 1 fi }