This commit is contained in:
Stephan Raabe 2023-08-13 11:58:04 +02:00
parent d53909a0c3
commit f54dada1b5

View File

@ -24,7 +24,11 @@ echo " "
echo "by Stephan Raabe (2023)" echo "by Stephan Raabe (2023)"
echo "-------------------------------------" echo "-------------------------------------"
echo "" echo ""
echo "The script will not remove any folders or files."
echo "Symbolic links will be created instead if the folder or files doesn't exists."
echo "If you want to overwrite your configuration please remove the correspondig folder in your .config first."
echo "(For example ~/.config/qtile, etc.)"
echo ""
while true; do while true; do
read -p "DO YOU WANT TO START THE INSTALLATION NOW? (Yy/Nn): " yn read -p "DO YOU WANT TO START THE INSTALLATION NOW? (Yy/Nn): " yn
case $yn in case $yn in
@ -160,12 +164,10 @@ _installSymLink() {
else else
if [ -d ${symlink} ]; then if [ -d ${symlink} ]; then
echo "Directory ${symlink}/ exists." echo "Directory ${symlink}/ exists."
rm -r ${symlink}/
ln -s ${linksource} ${linktarget} ln -s ${linksource} ${linktarget}
else else
if [ -f ${symlink} ]; then if [ -f ${symlink} ]; then
echo "File ${symlink} exists." echo "File ${symlink} exists."
rm ${symlink}
ln -s ${linksource} ${linktarget} ln -s ${linksource} ${linktarget}
else else
ln -s ${linksource} ${linktarget} ln -s ${linksource} ${linktarget}