You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
483 B
19 lines
483 B
#!/bin/bash
|
|
|
|
prompt_to_setup() {
|
|
cat debian_deps.list
|
|
read -rp "Do you want to install these packages (y/n)?: " response
|
|
if [[ "$response" == "y" ]]; then
|
|
return 0 # user choose to install
|
|
else
|
|
return 1 # user choose to not install
|
|
fi
|
|
}
|
|
|
|
if [ -x /usr/bin/apt ] || [ -x /bin/apt ]; then
|
|
if [ -r debian_deps.list ] && prompt_to_setup; then
|
|
sudo apt update && sudo apt install $(cat debian_deps.list)
|
|
else
|
|
echo "Install aborted..."
|
|
fi
|
|
fi
|
|
|