diff options
| author | Christian Krinitsin <code@krinitsin.xyz> | 2024-12-29 10:54:59 +0100 |
|---|---|---|
| committer | Christian Krinitsin <code@krinitsin.xyz> | 2024-12-29 10:54:59 +0100 |
| commit | 13358986633120fcce9efe5294da4537552cfd62 (patch) | |
| tree | 1f0dbf41c5f9715c2a2766cc8196e1d13e5ed21b /install.sh | |
| parent | b433dc40d04413d74a6bb419734f9c5857b8a661 (diff) | |
| download | dotfiles-13358986633120fcce9efe5294da4537552cfd62.tar.gz dotfiles-13358986633120fcce9efe5294da4537552cfd62.zip | |
add prints to install script and edit user-dirs
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/install.sh b/install.sh index 97cdb32..d9d8959 100755 --- a/install.sh +++ b/install.sh @@ -8,11 +8,26 @@ cd $SCRIPTPATH # Ignore list IGNORE=("bin" "wallpaper" "install.sh" ".git" "scripts") -# Install important packages -sudo pacman -S stow +printf "Start installing dotfiles\n\n" +printf "Ignore: %s\n" "${IGNORE[@]}" +printf "\n" + +# Install stow, if not installed +pacman -Q | grep stow 1>/dev/null +if [ $? != 0 ]; then + printf "Installing stow\n" + sudo pacman -S stow +else + printf "Stow is already installed\n" +fi # Prevent from symlinking whole directory -mkdir ~/.gnupg +if [ ! -d "/home/chris/.gnupg" ]; then + printf "Creating ~/.gnupg\n\n" + mkdir ~/.gnupg +else + printf "~/.gnupg is already available\n\n" +fi # Setting up all the symlinks max=${#IGNORE[@]} @@ -33,6 +48,9 @@ for f in *; do # Create symlink if not ignored if [[ $ignored == false ]]; then + printf "Symlink for $f created\n" stow "$f" fi done + +printf "\nDone\n" |