#!/bin/bash

# source /opt/scripts_local/script_logging.sh "$(basename $0)"
source /opt/scripts_local/shared_functions.sh

APP_NAME="pipx"

sudo apt update
sudo apt upgrade -y

if ! command -v "$APP_NAME" &> /dev/null; then
  echo "Installing & configuring $APP_NAME."
  sudo apt install -y "$APP_NAME"
  sudo "$APP_NAME" ensurepath
  sudo "$APP_NAME" completions
else
  echo "$APP_NAME already installed. Nothing to do here."
fi

