Skip to content

Commit

Permalink
update build .sh pixelc-linux#5 - hacky
Browse files Browse the repository at this point in the history
  • Loading branch information
da-moon committed Apr 27, 2020
1 parent 52a43c0 commit 7df6752
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ if [[ ! -d "$(pwd)/distros/$DISTRO" ]]; then
log_info "Distros available: $distros";
exit 1
fi
if [[ ! $(file_exists "$(pwd)/distros/$DISTRO/build.sh") ]]; then
log_error "$(pwd)/distros/$DISTRO/build.sh not found!"
readonly temp_build_script="$(pwd)/distros/debian/build.sh"
readonly build_script="$(pwd)/distros/$DISTRO/build.sh"
if [[ ! $(file_exists "$temp_build_script") ]]; then
log_error "$temp_build_script not found!"
exit 1;
fi

log_info "setting ownership of '$SYSROOT' to UID '$UID'"
sudo chown -R "$UID:$GID" "$SYSROOT"
source "$(pwd)/distros/$DISTRO/build.sh"
source "$temp_build_script"
# source
if [ "$?" -ne "0" ]; then
exit 1;
fi
Expand Down

0 comments on commit 7df6752

Please sign in to comment.