📝 Made notation on what to install for xtract script
This commit is contained in:
parent
a937da5432
commit
84709d1993
2 changed files with 34 additions and 2 deletions
30
scripts/xtract
Executable file
30
scripts/xtract
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Error handling
|
||||
set -e
|
||||
|
||||
# For styling/colorizing output
|
||||
txtbld=$(tput bold)
|
||||
txtblue=${txtbld}$(tput setaf 4)
|
||||
txtgreen=${txtbld}$(tput setaf 2)
|
||||
txtred=${txtbld}$(tput setaf 1)
|
||||
txtyellow=${txtbld}$(tput setaf 3)
|
||||
txtwhite=${txtbld}$(tput setaf 7)
|
||||
|
||||
# Intro Prompt
|
||||
echo "${txtgreen}xtract: a simple shell script for decompressing common file formats"
|
||||
|
||||
# Dependency check
|
||||
# not to be used in actual program, encapsulate in function and use depending on which file is fed to xtract
|
||||
dependencies=("tar" "zip" "bzip2" "gzip" "gunzip" "pax" "7z" "ar" "cpio" "brotli" "lzip" "rzip" "xz" "zstd")
|
||||
numdependencies=14
|
||||
missingdependencies=0
|
||||
for ((i = 0; i < numdependencies; i++)) ;
|
||||
do
|
||||
if ! command -v "${dependencies[$i]}" &> /dev/null
|
||||
then
|
||||
echo "${txtred}dependency not met: ${dependencies[$i]}${txtwhite}"
|
||||
missingdependencies=$((missingdependencies+1))
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
@ -25,6 +25,8 @@ Download and install in virtmanager Windows 10 iso (for purposes of software tes
|
|||
Use this site (microsoft only has .exe now... 64 bit, version 21H2)
|
||||
https://www.itechtics.com/windows-10-download-iso/
|
||||
|
||||
Install pax file compressor/decompressor
|
||||
Install various file compressors/decompressors
|
||||
|
||||
doas pacman -S pax
|
||||
doas pacman -S pax lzip
|
||||
|
||||
paru rzip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue