Skip to content

Commit

Permalink
Make installation only install needed packages
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
  • Loading branch information
ecdye committed Mar 28, 2021
1 parent 765c23d commit eac77a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ if [[ -f /usr/local/sbin/zram-config ]]; then
exit 1
fi

echo "Installing needed packages (make, libattr1-dev)"
if ! dpkg -s 'build-essential' 'libattr1-dev' &> /dev/null; then
apt-get install --yes build-essential libattr1-dev || exit 1
echo "Installing needed packages (gcc, make, libattr1-dev)"
if ! dpkg -s 'gcc' 'make' 'libattr1-dev' &> /dev/null; then
apt-get install --yes gcc make libattr1-dev || exit 1
fi

cd overlayfs-tools || exit 1
Expand Down
4 changes: 2 additions & 2 deletions update.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if ! [[ -f /usr/local/sbin/zram-config ]]; then
exit 1
fi

if ! dpkg -s 'build-essential' 'libattr1-dev' &> /dev/null; then
apt-get install --yes build-essential libattr1-dev || exit 1
if ! dpkg -s 'gcc' 'make' 'libattr1-dev' &> /dev/null; then
apt-get install --yes gcc make libattr1-dev || exit 1
fi

git fetch origin
Expand Down

0 comments on commit eac77a7

Please sign in to comment.