mirror of https://github.com/hak5/openwrt-owl.git
script/symlink-tree.sh: Fix missing config dir
Apparently symlink-tree has not been used in quite some time as it fails to symlink the always required config dir Also, if we pulled from git but .git is missing we get many error messages on the symlinked tree without this patch (which symlinks .git, if present) Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>owl
parent
3e08637e87
commit
c19b7aaac5
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
BSDmakefile
|
BSDmakefile
|
||||||
|
config
|
||||||
Config.in
|
Config.in
|
||||||
LICENSE
|
LICENSE
|
||||||
Makefile
|
Makefile
|
||||||
|
@ -19,6 +20,9 @@ FILES="
|
||||||
toolchain
|
toolchain
|
||||||
tools"
|
tools"
|
||||||
|
|
||||||
|
OPTIONAL_FILES="
|
||||||
|
.git"
|
||||||
|
|
||||||
if [ -f feeds.conf ] ; then
|
if [ -f feeds.conf ] ; then
|
||||||
FILES="$FILES feeds.conf"
|
FILES="$FILES feeds.conf"
|
||||||
fi
|
fi
|
||||||
|
@ -42,4 +46,7 @@ for file in $FILES; do
|
||||||
}
|
}
|
||||||
ln -s "$PWD/$file" "$1/"
|
ln -s "$PWD/$file" "$1/"
|
||||||
done
|
done
|
||||||
|
for file in $OPTIONAL_FILES; do
|
||||||
|
[ -e "$PWD/$file" ] && ln -s "$PWD/$file" "$1/"
|
||||||
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue