added cleanup only before deprecating this
This commit is contained in:
parent
356a690f51
commit
58c0804e3c
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,7 @@ SCRIPT_DIR=${SCRIPT_DIR:-"$( cd -- "$( dirname -- "$0" )" &> /dev/null && pwd )"
|
|||
|
||||
SRC=${1:-$(cd $SCRIPT_DIR/../.. && pwd)}
|
||||
printf 'SRC=%s\n' "$SRC"
|
||||
cd $SRC
|
||||
[ "$SRC" = ":" ] || cd $SRC
|
||||
(
|
||||
cd "${2:-${HOME}}"
|
||||
echo cleanup, phase 1...
|
||||
|
@ -20,6 +20,7 @@ cd $SRC
|
|||
find . -mindepth 1 -maxdepth 2 -type l -print -delete
|
||||
mkdir -p .config
|
||||
|
||||
[ "$SRC" != ":" ] || exit 99
|
||||
echo linking...
|
||||
(
|
||||
cd $SRC; (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue