Skip to content

Commit

Permalink
reduce ympstrap output
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Nov 13, 2024
1 parent 2343cea commit 6db1c82
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/ympstrap
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ function fetch_pkg(){
uri=$(get_uri $arg)
pkg="$output"/var/lib/ymp/packages/"$(basename $uri)"
mkdir -p "$output"/var/lib/ymp/sysconf/"$arg"
wget -c ${repo/\$uri/$uri} -O "$pkg"
echo "Download: $arg" >/dev/stderr
wget -c ${repo/\$uri/$uri} -O "$pkg" -q
pkginst "$pkg"
chmod 755 -R "$output"
done
Expand All @@ -40,9 +41,9 @@ function fetch_pkg(){
function pkginst(){
mkdir "$output"/tmp/ -p
cd "$output"/tmp/
unzip "$1"
unzip "$1" >/dev/null
cd "$output"
tar -xvf "$output"/tmp/data.tar.*
tar -xf "$output"/tmp/data.tar.*
rm -rf "$output"/tmp
}
# Stage 1 download repo
Expand Down

0 comments on commit 6db1c82

Please sign in to comment.