mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-02 11:41:44 +00:00
Even though we are running as a login shell, the HOME is not being set and hence neither is GOCACHE which is required for golang 1.12 and beyond. Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
17 lines
291 B
Bash
Executable File
17 lines
291 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DESTDIR=$1
|
|
SAVE_DIR=$(pwd)
|
|
TEMP_INST=$(mktemp -d)
|
|
export HOME=$(getent passwd $(id -un) |& awk -F: '{print $(NF-1)}')
|
|
git clone . ${TEMP_INST}
|
|
cd ${TEMP_INST}
|
|
make install DESTDIR=${DESTDIR}
|
|
|
|
scripts/installer-post.sh ${DESTDIR}
|
|
|
|
cd ${SAVE_DIR}
|
|
/bin/rm -rf ${TEMP_INST}
|
|
|
|
exit 0
|