1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 20:35:11 +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"
continue
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
mkdir -p "workspace/backup/dotfiles_$DATETIME"
fi
DIRNAME=$(dirname ${TARGET})
if [ "$DIRNAME" != "." ]; then
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"
else
mv $TARGET "workspace/backup/dotfiles_$DATETIME/"