Add Code directory and some helpers to seed and sync it.
This commit is contained in:
10
setup.sh
10
setup.sh
@@ -52,7 +52,8 @@ else
|
||||
echo "ERROR: bashrc.sh not found, skipping." >&2
|
||||
fi
|
||||
|
||||
echo -e "\n`date` - Cleanup"
|
||||
echo -e "\n`date` - Directoriee"
|
||||
|
||||
if [[ -d ~/TRASH ]]; then
|
||||
rm -rfv ~/TRASH
|
||||
fi
|
||||
@@ -61,6 +62,13 @@ if [[ ! -e ~/storage/shared/TRASH ]]; then
|
||||
fi
|
||||
ln -s ~/storage/shared/TRASH ~/TRASH
|
||||
|
||||
if [[ ! -d ~/Code && ! -d ~/storage/shared/Code ]]; then
|
||||
mkdir -pv ~/storage/shared/Code
|
||||
ln -s ~/storage/shared/Code ~/Code
|
||||
fi
|
||||
|
||||
echo -e "\n`date` - Cleanup"
|
||||
|
||||
if [[ -n $DIR && $DIR != "/" && -d .git ]]; then
|
||||
echo "We are in a git clone, remove the project."
|
||||
cd ..
|
||||
|
Reference in New Issue
Block a user