mkdir in cloning
This commit is contained in:
parent
3594512291
commit
4ef0ca5e2d
@ -2,8 +2,22 @@
|
||||
SRC="$HOME"
|
||||
DEST="$(pwd)"
|
||||
[ "$(printf "Abort.\nContinue.\n" | dmenu -p "Copying from '$SRC' to '$DEST'. Continue?")" = "Continue." ] || exit
|
||||
set -x
|
||||
set -ex
|
||||
|
||||
for file in $(cat manifest); do
|
||||
cp "$SRC/$file" "$DEST/$file"
|
||||
for dir in $(cat manifest_dir); do
|
||||
if ! [ -d "$SRC/$dir" ]; then
|
||||
printf "Directory missing from SRC: %b\n" "$dir"
|
||||
false
|
||||
else
|
||||
mkdir -p "$DEST/$dir"
|
||||
fi
|
||||
done
|
||||
|
||||
for file in $(cat manifest_file); do
|
||||
if ! [ -e "$SRC/$file" ]; then
|
||||
printf "File missing from SRC: %b\n" "$file"
|
||||
false
|
||||
else
|
||||
cp "$SRC/$file" "$DEST/$file"
|
||||
fi
|
||||
done
|
||||
|
8
dotfiles-old/manifest_dir
Normal file
8
dotfiles-old/manifest_dir
Normal file
@ -0,0 +1,8 @@
|
||||
.config/
|
||||
.config/bspwm/
|
||||
.config/i3/
|
||||
.config/i3status/
|
||||
.config/sxhkd/
|
||||
.config/sxhkd/
|
||||
.config/sxhkd/
|
||||
src/dmenu/
|
Loading…
Reference in New Issue
Block a user