1
0

mkdir in cloning

This commit is contained in:
Deven Blake 2021-05-10 22:06:25 -04:00
parent 3594512291
commit 4ef0ca5e2d
3 changed files with 25 additions and 3 deletions

View File

@ -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

View File

@ -0,0 +1,8 @@
.config/
.config/bspwm/
.config/i3/
.config/i3status/
.config/sxhkd/
.config/sxhkd/
.config/sxhkd/
src/dmenu/