mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-09 18:29:41 +00:00
Fix dot-put script
This commit is contained in:
parent
0d3c5f1db4
commit
a1f9a7c82d
|
@ -2,8 +2,9 @@
|
|||
set -euo pipefail
|
||||
|
||||
dotdir="$HOME/dots"
|
||||
dothome="$dotdir/home"
|
||||
dotroot="$dotdir/root"
|
||||
# the trailing slashes are important here!
|
||||
dothome="$dotdir/home/"
|
||||
dotroot="$dotdir/root/"
|
||||
|
||||
usage() {
|
||||
echo "$0"
|
||||
|
@ -21,7 +22,7 @@ Details:
|
|||
}
|
||||
|
||||
dotcopy() {
|
||||
syspath="$1"
|
||||
syspath="$(realpath "$1")"
|
||||
|
||||
if [[ "$syspath" == "$HOME"* ]]; then
|
||||
dotpath="${syspath/#$HOME/$dothome}"
|
||||
|
|
Loading…
Reference in a new issue