chore: os - package manager checker
parent
4b0bd80ec2
commit
b1f827cc6d
|
@ -12,6 +12,9 @@ echo $hostname
|
|||
os=$(lsb_release -d| awk '{print $2}') # definitely works on Fedora
|
||||
echo $os
|
||||
|
||||
[ $os == "Ubuntu" ] && packageManager='apt' || [ $os == "Fedora" ] && packageManager='dnf' || echo "OS not yet supported"
|
||||
|
||||
echo $packageManager
|
||||
# ensure some directories exist
|
||||
gitDir=$homeDir"/git"
|
||||
[ ! -d $gitDir ] && mkdir -p $gitDir || echo $gitDir" already exists"
|
||||
|
@ -24,4 +27,4 @@ configDir=$homeDir"/.config"
|
|||
|
||||
|
||||
# create an ssh key, for use with git/github
|
||||
ssh-keygen -t ed25519 -f $sshDir"/id_ed25519_git" -N ''
|
||||
ssh-keygen -t ed25519 -f $sshDir"/id_ed25519_git" -N ''
|
||||
|
|
Loading…
Reference in New Issue