Skip to content

Commit 0e17f77

Browse files
authored
Merge pull request #30 from blobcoder21/patch-3
Update distribute.sh
2 parents 3054dbd + aa61324 commit 0e17f77

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

distribute.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PODMAN_RUNROOT="./.podman-run"
88
PODMAN="podman --root $PODMAN_ROOT --runroot $PODMAN_RUNROOT"
99
APP_NAME="term.everything❗mmulet.com-dont_forget_to_chmod_+x_this_file"
1010

11-
get_distro_podman_install() {
11+
get_distro() {
1212
# Try to detect the distro
1313
if [ -f /etc/os-release ]; then
1414
. /etc/os-release
@@ -19,22 +19,22 @@ get_distro_podman_install() {
1919

2020
case $DISTRO in
2121
ubuntu|debian)
22-
echo "sudo apt update && sudo apt install -y podman"
22+
echo "sudo apt update && sudo apt install -y "
2323
;;
2424
fedora)
25-
echo "sudo dnf install -y podman"
25+
echo "sudo dnf install -y "
2626
;;
2727
centos|rhel|rocky|almalinux)
28-
echo "sudo yum install -y podman"
28+
echo "sudo yum install -y "
2929
;;
3030
arch|manjaro)
31-
echo "sudo pacman -S podman"
31+
echo "sudo pacman -S "
3232
;;
3333
opensuse*)
34-
echo "sudo zypper install podman"
34+
echo "sudo zypper install "
3535
;;
3636
alpine)
37-
echo "sudo apk add podman"
37+
echo "sudo apk add "
3838
;;
3939
*)
4040
echo "Please install podman using your distribution's package manager"
@@ -43,9 +43,9 @@ get_distro_podman_install() {
4343
}
4444

4545
if ! command -v podman >/dev/null 2>&1; then
46-
INSTALL_CMD=$(get_distro_podman_install)
46+
INSTALL_CMD=$(get_distro)
4747
echo "Warning: podman is not installed or not in PATH."
48-
echo "To install on your system, try: $INSTALL_CMD"
48+
echo "To install on your system, try: $INSTALL_CMD podman"
4949
echo "Please install podman to proceed, it's literally all you need. Don't even need attention. Just podman. Just get podman. What are you waiting for? Stop reading this and install podman."
5050
exit 1
5151
fi
@@ -55,7 +55,8 @@ if [ -z "$SKIP_SUBMODULE_CHECK" ]; then
5555
if command -v git >/dev/null 2>&1; then
5656
git submodule update --init --recursive
5757
else
58-
echo "Git is not available, I know I said you only need podman, which is technically true. But, git is the easiest way to download third_party dependencies. Either install git (perhaps with `sudo apt install git`) or download the submodules manually. If you already downloaded the submodule, rerun this script with SKIP_SUBMODULE_CHECK=1."
58+
INSTALL_CMD=$(get_distro)
59+
echo "Git is not available, I know I said you only need podman, which is technically true. But, git is the easiest way to download third_party dependencies. Either install git (perhaps with $INSTALL_CMD git) or download the submodules manually. If you already downloaded the submodule, rerun this script with SKIP_SUBMODULE_CHECK=1."
5960
exit 1
6061
fi
6162
else

0 commit comments

Comments
 (0)