Go back to bash
This commit is contained in:
parent
d1874677cf
commit
9c941795f2
1 changed files with 5 additions and 5 deletions
10
daily-use-pcs/fedora/setup-git.zsh
Normal file → Executable file
10
daily-use-pcs/fedora/setup-git.zsh
Normal file → Executable file
|
@ -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 #
|
||||
#############
|
||||
|
|
Loading…
Reference in a new issue