Skip to content
Snippets Groups Projects
Verified Commit a3b59aee authored by Karel Koci's avatar Karel Koci :metal:
Browse files

compile_pkgs: try to fix problem with symlinks

This should consistently expand path to compile_pkgs script no matter if
symbolic link for used or not.
parent 72fa509f
Branches
Tags
No related merge requests found
......@@ -28,8 +28,8 @@ _die() {
}
# Paths to OpenWRT build and turris-build sources
src_dir="$(readlink -f "$(dirname "$0")")"
build_dir="$(pwd)"
src_dir="$(dirname "$(readlink -f "$0")")"
build_dir="$(readlink -f "$(pwd)")"
if [ "$build_dir" == "$src_dir" ]; then
# Protect against turris-build repository wipe
mkdir -p build
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment