Skip to content

Commit fd58598

Browse files
authored
Bugfix
1 parent a9e801c commit fd58598

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

XWayland-Video-Bridge-Setup.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
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
168
check_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
3931
inst_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

0 commit comments

Comments
 (0)