diff options
| author | xplshn <xplshn@noreply.codeberg.org> | 2025-04-10 03:38:01 +0000 |
|---|---|---|
| committer | xplshn <xplshn@noreply.codeberg.org> | 2025-04-10 03:38:01 +0000 |
| commit | 05416a7dec36c55dfb13ecde63dedfbccd05905c (patch) | |
| tree | 4e87db8dc3846a86845b11433fe5680268684fbe | |
| parent | ca3b8902af0723e10de4bd5f81bde0d7e4090fcc (diff) | |
| download | autils-05416a7dec36c55dfb13ecde63dedfbccd05905c.tar.gz autils-05416a7dec36c55dfb13ecde63dedfbccd05905c.zip | |
Update apkg
Signed-off-by: xplshn <xplshn@noreply.codeberg.org>
| -rwxr-xr-x | apkg | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -216,8 +216,11 @@ apply_patch() { } msg() { - ttysize=$(stty size | awk '{print $2}') - printf "%s\n" "[${name:-...}] $@" | fold -sw $ttysize + # Don't bother if we're not in a terminal + if [ -t 1 ]; then + ttysize=$(stty size 2>/dev/null | awk '{print $2}' || echo "80") + fi + printf "%s\n" "[${name:-...}] $@" | fold -sw ${ttysize:-80} } buildstatus() { @@ -248,8 +251,8 @@ build_src() { apply_patch - export CARGO_HOME=$SRC/.cargo - export GOCACHE=$SRC/.go + export CARGO_HOME=${CARGO_HOME:-$SRC/.cargo} + export GOCACHE=${GOCACHE:-$SRC/.go} export DESTDIR=$PKG export DEST_DIR=$PKG # p7zip export INSTALLROOT=$PKG # syslinux |