mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 21:45:10 +01:00
Fix indentation
This commit is contained in:
@@ -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/"
|
||||||
|
|||||||
Reference in New Issue
Block a user