Skip to content

Commit

Permalink
fix puid pgid var expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Jun 15, 2018
1 parent 4676c6d commit 774d468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/root/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ chmod -R 775 ${install_paths}
cat <<EOF > /tmp/permissions_heredoc
# get previous puid/pgid (if first run then will be empty string)
previous_puid=$(cat "/tmp/puid" 2>/dev/null)
previous_pgid=$(cat "/tmp/pgid" 2>/dev/null)
previous_puid=\$(cat "/tmp/puid" 2>/dev/null || true)
previous_pgid=\$(cat "/tmp/pgid" 2>/dev/null || true)
# if first run (no puid or pgid files in /tmp) or the PUID or PGID env vars are different
# from the previous run then re-apply chown with current PUID and PGID values.
Expand Down

0 comments on commit 774d468

Please sign in to comment.