-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstripper.sh
51 lines (37 loc) · 873 Bytes
/
stripper.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
rm -rf /tmp/stripdance
git clone $STRIP_REPO /tmp/stripdance
cd /tmp/stripdance
rm -rf sexy
rm -rf stable
rm -rf incubator
mkdir stable
mkdir incubator
curl -L -o main.zip https://github.com/truecharts/catalog/archive/refs/heads/main.zip
unzip main.zip
rm -f main.zip
cd catalog-main
ls -la .
rm -rf .github
cd stable
ls -1 . |
grep -E "^($STRIP_STABLE)\$" |
xargs cp -r -t ../../stable/
cd ../incubator
ls -1 . |
grep -E "^($STRIP_INCUBATOR)\$" |
xargs cp -r -t ../../incubator/
cd ..
rm -rf dependency enterprise incubator stable
for x in ./* ./.[!.]* ./..?*; do
if [ -e "$x" ]; then mv -- "$x" ../; fi
done
cd ..
rm -rf catalog-main
git add .
git config --global user.email "[email protected]"
git config --global user.name "Sexy Stripper"
git commit -a --amend -m "update" || git commit -a -m "update"
git push -f
cd /tmp
rm -rf /tmp/stripdance