-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
745dbb4
commit 92e7f81
Showing
2 changed files
with
33 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,31 @@ | ||
#!/bin/bash | ||
# EMBArk - The firmware security scanning environment | ||
# | ||
# Copyright 2024 Siemens Energy AG | ||
# | ||
# EMBArk comes with ABSOLUTELY NO WARRANTY. | ||
# | ||
# EMBArk is licensed under MIT | ||
# | ||
# Author(s): Benedikt Kuehne | ||
|
||
# Description: Automates updating the pipfile | ||
|
||
|
||
# 1. find out which installation | ||
local lINSTALL="" | ||
|
||
lINSTALL="deploy" | ||
|
||
if grep -q "EMBARK_INSTALL=dev" ./.env ; then | ||
INSTALL="dev" | ||
fi | ||
|
||
# 2. update pipfile | ||
if [[ lINSTALL == "dev" ]]: | ||
MYSQLCLIENT_LDFLAGS='-L/usr/mysql/lib -lmysqlclient -lssl -lcrypto -lresolv' MYSQLCLIENT_CFLAGS='-I/usr/include/mysql/' PIPENV_VENV_IN_PROJECT=1 pipenv update | ||
else | ||
echo "This is not a developer setup...still trying to update" | ||
pipenv update | ||
fi | ||
# push to web-dir if available |
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