forked from mirrored-repos/manjaro-tools
[util]add reset_pac_conf() to be used in buildiso
This commit is contained in:
parent
c2d57e0529
commit
cd376c8b4f
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,12 @@
|
|||
# echo ${repos[@]}
|
||||
# }
|
||||
|
||||
reset_pac_conf(){
|
||||
local conf=$1
|
||||
sed -e "s|^.*HoldPkg = pacman glibc|HoldPkg = pacman glibc manjaro-system|" \
|
||||
-e "s|^.*#CheckSpace|CheckSpace|" -i "$1"
|
||||
}
|
||||
|
||||
read_set(){
|
||||
local _space="s| ||g" \
|
||||
_clean=':a;N;$!ba;s/\n/ /g' \
|
||||
|
|
Loading…
Reference in a new issue