|
|
@ -53,7 +53,7 @@ reconfigure=false
|
|
|
|
runUnattended=false
|
|
|
|
runUnattended=false
|
|
|
|
|
|
|
|
|
|
|
|
# Compatibility
|
|
|
|
# Compatibility
|
|
|
|
|
|
|
|
distro_check() {
|
|
|
|
if command -v apt-get &> /dev/null; then
|
|
|
|
if command -v apt-get &> /dev/null; then
|
|
|
|
#Debian Family
|
|
|
|
#Debian Family
|
|
|
|
#############################################
|
|
|
|
#############################################
|
|
|
@ -103,8 +103,8 @@ else
|
|
|
|
echo "OS distribution not supported"
|
|
|
|
echo "OS distribution not supported"
|
|
|
|
exit
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
####### FUNCTIONS ##########
|
|
|
|
|
|
|
|
is_repo() {
|
|
|
|
is_repo() {
|
|
|
|
# Use git to check if directory is currently under VCS, return the value 128
|
|
|
|
# Use git to check if directory is currently under VCS, return the value 128
|
|
|
|
# if directory is not a repo. Return 1 if directory does not exist.
|
|
|
|
# if directory is not a repo. Return 1 if directory does not exist.
|
|
|
@ -1055,6 +1055,9 @@ main() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check for supported distribution
|
|
|
|
|
|
|
|
distro_check
|
|
|
|
|
|
|
|
|
|
|
|
# Check arguments for the undocumented flags
|
|
|
|
# Check arguments for the undocumented flags
|
|
|
|
for var in "$@"; do
|
|
|
|
for var in "$@"; do
|
|
|
|
case "$var" in
|
|
|
|
case "$var" in
|
|
|
|