save point

This commit is contained in:
Paul M 2023-09-23 19:26:45 -05:00
parent e3359be459
commit 6b681df935
4 changed files with 130 additions and 96 deletions

23
os_probe.bash Executable file
View file

@ -0,0 +1,23 @@
#!/bin/bash
# OS probing component
# Not an easy task to identify the distro, this app supports Debian based and Arch based
# Our best bet is to look for which package manager is installed
# check if apt-get is installed
if [ -x "$(command -v apt-get)" ]; then
# set environment variable for os
export osp="Debian"
fi
# check if pacman is installed
if [ -x "$(command -v pacman)" ]; then
export osp="Arch"
fi
# I know its so high tech and amazing right?