Initial
This commit is contained in:
18
lib.sh
Normal file
18
lib.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
check_apt() {
|
||||
[[ ! -f apt.conf.sh ]] && echo "No apt.conf.sh - cd to package root directory" && exit 128
|
||||
}
|
||||
|
||||
is_yes(){
|
||||
[[ "$1" =~ y|Y|j|J ]] && return true
|
||||
return false
|
||||
}
|
||||
|
||||
is_no(){
|
||||
[[ "$1" =~ n|N ]] && return true
|
||||
return false
|
||||
}
|
||||
|
||||
actual_branch() {
|
||||
git rev-parse --abbrev-ref HEAD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user