Skip to content

Commit 535193a

Browse files
authored
Manjaro repo fixer
1 parent f2a972f commit 535193a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Uninstall/repofix.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
3+
#!/bin/bash
4+
folder=manjaro-fs
5+
folder2=androjaro-fs
6+
if [ -d "$folder" ]; then
7+
8+
rm -rf manjaro-fs/etc/pacman.d/mirrorlist
9+
cat > $folder/etc/pacman.d/mirrorlist <<- EOM
10+
##
11+
## Manjaro Linux repository mirrorlist
12+
## Generated on 02 May 2020 14:22
13+
##
14+
## Use pacman-mirrors to modify
15+
##
16+
## Location : Germany
17+
## Time : 99.99
18+
## Last Sync :
19+
Server = http://manjaro-arm.moson.eu/arm-stable/$repo/$arch/
20+
EOM
21+
fi
22+
23+
24+
if [ -d "$folder2" ]; then
25+
26+
rm -rf androjaro-fs/etc/pacman.d/mirrorlist
27+
cat > $folder2/etc/pacman.d/mirrorlist <<- EOM
28+
##
29+
## Manjaro Linux repository mirrorlist
30+
## Generated on 02 May 2020 14:22
31+
##
32+
## Use pacman-mirrors to modify
33+
##
34+
## Location : Germany
35+
## Time : 99.99
36+
## Last Sync :
37+
Server = http://manjaro-arm.moson.eu/arm-stable/$repo/$arch/
38+
EOM
39+
fi

0 commit comments

Comments
 (0)