You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# $1: test to run# By default, assert breaks execution if test fails# if _assert_wait = 1, assert waits for user to press key before continuingassert(){
!!!! implement test assertion
if [ "${_assert_wait}"=="1" ];thenecho"Press enter..."readfi
}
# Print message to stderr and exit (status code 1)# $1: message to printdie() {
echo"$1">&2exit 1
}
common > add ubuntu repo
#!/bin/bashreadonly repo="$1"if! which add-apt-repository;thenecho"Installing add-apt-repository"
apt-get install -y software-properties-common
fiecho"Adding repo ${repo}"# !!!! syntax of add-apt-repository changes depending upon version...
add-apt-repository "${repo}"