From 9c941795f2e7b0ccf0e13aafb9e62ae12eb2620c Mon Sep 17 00:00:00 2001 From: askiiart Date: Mon, 21 Aug 2023 10:59:54 -0500 Subject: [PATCH] Go back to bash --- daily-use-pcs/fedora/setup-git.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 daily-use-pcs/fedora/setup-git.zsh diff --git a/daily-use-pcs/fedora/setup-git.zsh b/daily-use-pcs/fedora/setup-git.zsh old mode 100644 new mode 100755 index 2ab9d1a..a498141 --- a/daily-use-pcs/fedora/setup-git.zsh +++ b/daily-use-pcs/fedora/setup-git.zsh @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/bin/bash # Modify constants as needed GITEA_URL = "https://git.askiiart.net" @@ -16,10 +16,10 @@ osInfo[/etc/SuSE-release]=zypp osInfo[/etc/debian_version]=apt-get osInfo[/etc/alpine-release]=apk -for f in ${(k)osInfo} +for f in ${!osInfo[@]} do - if [[ -f $f ]]; then - echo "Package manager: ${osInfo[$f]}" + if [[ -f $f ]];then + echo Package manager: ${osInfo[$f]} fi done @@ -46,7 +46,7 @@ echo This is the exported key, copy it and put it in GitHub/Gitea/whatever echo Gitea URL: ${GITEA_URL}/user/settings/keys echo GitHub URL: https://github.com/settings/gpg/new read -p "Press enter when you're done" < /dev/tty - +exit ############# # SSH stuff # #############