File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 44# exec > >(tee xwvb_output.log)
55# exec 2>&1
66
7- # Check if a command is available
8- check_command () {
9- if ! command -v " $1 " & > /dev/null; then
10- echo " Command not found: $1 "
11- exit 1
12- fi
13- }
14-
157# Check the Linux distribution
168check_distro () {
179 if [ -f " /etc/os-release" ] && grep -qi " debian" /etc/os-release; then
@@ -37,7 +29,7 @@ check_distro() {
3729
3830# Check if Flatpak is installed and install it if not
3931inst_flatpak () {
40- if ! check_command -v flatpak & > /dev/null; then
32+ if ! command -v flatpak & > /dev/null; then
4133 echo " Flatpak is not installed. Installing..."
4234 # Check the package manager used by the distro and install Flatpak accordingly
4335 if [ -f " /etc/os-release" ] && grep -qi " debian" /etc/os-release; then
You can’t perform that action at this time.
0 commit comments