Skip to content

Commit

Permalink
Add the die() helper function.
Browse files Browse the repository at this point in the history
  • Loading branch information
specing committed Jun 10, 2013
1 parent 66eb85f commit a1bc059
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lxc-gentoo
Expand Up @@ -115,6 +115,14 @@ execute_exclusively()
} 50> "/var/lock/subsys/$lock_name"
}

die()
{
local retval="$1"
shift 1
printf "$@"
exit "$retval"
}

################################################################################
# DISTRO custom configuration files
################################################################################
Expand Down

0 comments on commit a1bc059

Please sign in to comment.