1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01:00

Fix indentation

This commit is contained in:
2015-08-28 10:13:14 +02:00
parent befd2062ca
commit 32a62c5a70

View File

@@ -41,14 +41,14 @@ do
echo " symlink exists and is fine, skipping" echo " symlink exists and is fine, skipping"
continue continue
elif [ -e $TARGET ] || [ -L $TARGET ] && [ "$(readlink $TARGET)" != "$DIR/$TARGET" ]; then elif [ -e $TARGET ] || [ -L $TARGET ] && [ "$(readlink $TARGET)" != "$DIR/$TARGET" ]; then
echo " exists, moving out of the way" echo " exists, moving out of the way"
if [ ! -d "workspace/backup/dotfiles_$DATETIME" ]; then if [ ! -d "workspace/backup/dotfiles_$DATETIME" ]; then
mkdir -p "workspace/backup/dotfiles_$DATETIME" mkdir -p "workspace/backup/dotfiles_$DATETIME"
fi fi
DIRNAME=$(dirname ${TARGET}) DIRNAME=$(dirname ${TARGET})
if [ "$DIRNAME" != "." ]; then if [ "$DIRNAME" != "." ]; then
mkdir "workspace/backup/dotfiles_$DATETIME/$DIRNAME" mkdir "workspace/backup/dotfiles_$DATETIME/$DIRNAME"
mv $TARGET "workspace/backup/dotfiles_$DATETIME/$DIRNAME" mv $TARGET "workspace/backup/dotfiles_$DATETIME/$DIRNAME"
#echo "workspace/backup/privdotfiles_$DATETIME/$DIRNAME" #echo "workspace/backup/privdotfiles_$DATETIME/$DIRNAME"
else else
mv $TARGET "workspace/backup/dotfiles_$DATETIME/" mv $TARGET "workspace/backup/dotfiles_$DATETIME/"