Skip to content
Snippets Groups Projects
Commit e9de127d authored by IratePorcupine's avatar IratePorcupine
Browse files

Remove some bashisms

parent 15428247
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#!/bin/sh
java -jar "$DOS_BINARY_PATCHER" scraper "$1" > CIP.tmp.1;
echo -e "CVE-0000-0000\n#The above line must be the last line" >> CIP.tmp.1;
echo "CVE-0000-0000" >> CIP.tmp.1;
echo "#The above line must be the last line" >> CIP.tmp.1;
java -jar "$DOS_BINARY_PATCHER" sort CIP.tmp.1 > CIP.tmp.2;
echo -e "CVE-0000-0000\n#The above line must be the last line" >> CIP.tmp.2;
echo "CVE-0000-0000" >> CIP.tmp.2;
echo "#The above line must be the last line" >> CIP.tmp.2;
echo "#Last checked "$(date -uI) > CIP.tmp.3;
cat CIP.tmp.2 >> CIP.tmp.3;
#mv CIP.txt CIP.txt.bak;
......
#!/bin/bash
#!/bin/sh
mv CVE-2013-2891/^3.11/0001.patch CVE-2013-2891/^3.11/0001.patch.disabled;
mv CVE-2016-0819/ANY/0001.patch CVE-2016-0819/ANY/0001.patch.disabled;
mv CVE-2016-1583/3.4/0005.patch CVE-2016-1583/3.4/0005.patch.disabled;
......
rm-nonlts.sh 100644 → 100755
#!/bin/bash
function rmVersion() {
if [ ! -z $1 ]; then
#!/bin/sh
rmVersion() {
if [ -n "$1" ]; then
awk -i inplace '!/Link - '$1' - https/' Kernel_CVE_Patch_List.txt;
rm -rfv CVE*/$1;
fi;
}
function rmVersions() {
rmVersions() {
#5.10 LTS
rmVersion 5\.9;
rmVersion 5\.8;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment