add installation command check

This commit is contained in:
Ray Elliott 2020-03-13 23:18:27 +00:00
parent 9864022fc7
commit 412d2a43f5
1 changed files with 8 additions and 3 deletions

View File

@ -40,6 +40,11 @@ ln -s /mnt/media/Video "$HOME/Video"
ln -s '/mnt/media/Audio Books' "$HOME/Audio/audio-books" ln -s '/mnt/media/Audio Books' "$HOME/Audio/audio-books"
ln -s /mnt/media/Music "$HOME/Audio/music" ln -s /mnt/media/Music "$HOME/Audio/music"
if command -v pacman ; then
echo "Installing xdg-user-dirs ..." echo "Installing xdg-user-dirs ..."
echo " pacman -Syu xdg-user-dirs" echo " pacman -Syu xdg-user-dirs"
sudo pacman -Syu xdg-user-dirs sudo pacman -Syu xdg-user-dirs
elif command -v apt-get ; then
echo " apt-get update && apt-get install xdg-user-dirs"
# etc ...
fi