From 0477e4fd5d17c726d7d3d8450fb1dd4005a1b1c7 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 15 Aug 2021 14:37:45 +0200 Subject: [PATCH] Removed bloated script --- applydots.sh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 applydots.sh diff --git a/applydots.sh b/applydots.sh deleted file mode 100755 index 889805a..0000000 --- a/applydots.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/sh - -applydots() { - cfgPath=$HOME/.config - backupPath=$HOME/.config_backup - - curdate=$(date +"%Y-%m-%d-%T") - - echo "Creating backup at \"$backupPath/$curdate\"..." - mkdir -p $backupPath - cp -r $cfgPath $backupPath/$curdate # create backup - - echo "Installing dotfiles..." - # copy over the dotfiles - cp -rf $PWD/.config/* $cfgPath/ - - echo "Done." -} - -while true; do - read -p "Do you wish to install the dotfiles? [yn] " yn - case $yn in - [Yy]* ) applydots; break;; - [Nn]* ) exit;; - * ) echo "Please answer yes or no.";; - esac -done