Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add custom dependencies trough console (#628)
* add custom dependencies trough console * add refactor scripts working and tested on sans complexe project Co-authored-by: Bruno Pinchedé <bruno.pinchede@artifakt.io>
- Loading branch information
1 parent
e931cf9
commit 9907b05
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
echo "CHECKING if more dependencies need to be installed" | ||
|
||
if [ -n "$APT_GET_INSTALL" ]; then | ||
echo "Depedencies found. Installing $APT_GET_INSTALL" | ||
apt-get update --fix-missing | ||
for i in $APT_GET_INSTALL; do | ||
echo "Install $i" | ||
sudo apt-get install -y "$i" | ||
done | ||
rm -rf /var/lib/apt/lists/* | ||
echo "Install done." | ||
else | ||
echo "No dependencies to add." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
echo "CHECKING if more dependencies need to be installed" | ||
|
||
if [ -n "$APT_GET_INSTALL" ]; then | ||
echo "Depedencies found. Installing $APT_GET_INSTALL" | ||
apt-get update --fix-missing | ||
for i in $APT_GET_INSTALL; do | ||
echo "Install $i" | ||
sudo apt-get install -y "$i" | ||
done | ||
rm -rf /var/lib/apt/lists/* | ||
echo "Install done." | ||
else | ||
echo "No dependencies to add." | ||
fi |