Skip to content

Commit

Permalink
Updated helper script to link yet not linked non-core packages
Browse files Browse the repository at this point in the history
  • Loading branch information
TomFreudenberg committed Mar 26, 2015
1 parent 375de82 commit 27f932c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/link-non-core-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ if [ -d "non-core" ]; then
cd non-core

# link all ./packages/non-core/pkg to ./packages/pkg
for pkg in $(find . -mindepth 1 -maxdepth 1 -type d); do
for pkg in $(ls -d *); do
if [ -L "../${pkg}" ]; then
echo "Package ${pkg} is already linked."
elif [ -e "../${pkg}" ] || [ -d "../${pkg}" ]; then
echo "Package ${pkg} does already exist."
else
ln -s "${pkg}" ..
elif [ -L "${pkg}" ] || [ -d "${pkg}" ]; then
# link only if folder oder sym-link detected
ln -s "non-core/${pkg}" "../${pkg}"
echo "Package ${pkg} linked."
fi
done

fi

popd >/dev/null 2>&1

0 comments on commit 27f932c

Please sign in to comment.