diff --git a/daily-use-pcs/fedora/setup-git.bash b/daily-use-pcs/fedora/setup-git.bash index 5141e7a..ca623f2 100755 --- a/daily-use-pcs/fedora/setup-git.bash +++ b/daily-use-pcs/fedora/setup-git.bash @@ -20,11 +20,11 @@ osInfo[/etc/alpine-release]=apk for f in ${!osInfo[@]} do if [[ -f $f ]];then - echo Package manager: ${osInfo[$f]} + PACKAGE_MANAGER=${osInfo[$f]} fi done -sudo ${osInfo[$f]} install pass git -y +sudo ${PACKAGE_MANAGER} install pass git -y # Install git credential manager curl -L https://aka.ms/gcm/linux-install-source.sh | sh diff --git a/zsh/zsh-setup.bash b/zsh/zsh-setup.bash index 011dc3b..e6f534b 100755 --- a/zsh/zsh-setup.bash +++ b/zsh/zsh-setup.bash @@ -12,10 +12,10 @@ osInfo[/etc/alpine-release]=apk for f in ${!osInfo[@]} do if [[ -f $f ]];then - echo Package manager: ${osInfo[$f]} + PACKAGE_MANAGER=${osInfo[$f]} fi done -sudo ${osInfo[$f]} install zsh -y +sudo ${PACKAGE_MANAGER} install zsh -y cp -r zsh-files/* ~/ \ No newline at end of file