Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
JerrySM64 committed Jul 28, 2023
1 parent a9e801c commit fd58598
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions XWayland-Video-Bridge-Setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
#exec > >(tee xwvb_output.log)
#exec 2>&1

# Check if a command is available
check_command() {
if ! command -v "$1" &>/dev/null; then
echo "Command not found: $1"
exit 1
fi
}

# Check the Linux distribution
check_distro() {
if [ -f "/etc/os-release" ] && grep -qi "debian" /etc/os-release; then
Expand All @@ -37,7 +29,7 @@ check_distro() {

# Check if Flatpak is installed and install it if not
inst_flatpak() {
if ! check_command -v flatpak &>/dev/null; then
if ! command -v flatpak &>/dev/null; then
echo "Flatpak is not installed. Installing..."
# Check the package manager used by the distro and install Flatpak accordingly
if [ -f "/etc/os-release" ] && grep -qi "debian" /etc/os-release; then
Expand Down

0 comments on commit fd58598

Please sign in to comment.