Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
binwalk
Commits
3e0fe9be
Commit
3e0fe9be
authored
Mar 24, 2021
by
Peter Eacmen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to preserve the python being used across sudo
parent
4e380ec2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
deps.sh
deps.sh
+5
-4
No files found.
deps.sh
View file @
3e0fe9be
...
...
@@ -62,6 +62,7 @@ fi
PYTHON3_APT_CANDIDATES
=
""
PYTHON3_YUM_CANDIDATES
=
""
YUM_CANDIDATES
=
"git gcc gcc-c++ make openssl-devel qtwebkit-devel qt-devel gzip bzip2 tar arj p7zip p7zip-plugins cabextract squashfs-tools zlib zlib-devel lzo lzo-devel xz xz-compat-libs xz-libs xz-devel xz-lzma-compat python-backports-lzma lzip pyliblzma perl-Compress-Raw-Lzma lzop srecord"
PYTHON
=
"
$(
which python3
)
"
# Check for root privileges
if
[
$UID
-eq
0
]
...
...
@@ -76,7 +77,7 @@ fi
function
install_yaffshiv
{
git clone https://github.com/devttys0/yaffshiv
(
cd
yaffshiv
&&
$SUDO
python3
setup.py install
)
(
cd
yaffshiv
&&
$SUDO
$PYTHON
setup.py install
)
$SUDO
rm
-rf
yaffshiv
}
...
...
@@ -90,7 +91,7 @@ function install_sasquatch
function
install_jefferson
{
git clone https://github.com/sviehb/jefferson
(
cd
jefferson
&&
$SUDO
pip3 install
-r
requirements.txt
&&
$SUDO
python3
setup.py install
)
(
cd
jefferson
&&
$SUDO
$PYTHON
-mpip
install
-r
requirements.txt
&&
$SUDO
$PYTHON
setup.py install
)
$SUDO
rm
-rf
jefferson
}
...
...
@@ -126,14 +127,14 @@ function install_cramfstools
function
install_ubireader
{
git clone https://github.com/jrspruitt/ubi_reader
(
cd
ubi_reader
&&
$SUDO
python3
setup.py install
)
(
cd
ubi_reader
&&
$SUDO
$PYTHON
setup.py install
)
$SUDO
rm
-rf
ubi_reader
}
function
install_pip_package
{
PACKAGE
=
"
$1
"
$SUDO
pip3
install
$PACKAGE
$SUDO
$PYTHON
-mpip
install
$PACKAGE
}
function
find_path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment