refactor and fix

This commit is contained in:
Daniel Langbein 2021-09-10 15:59:33 +02:00
parent 906beae0d8
commit 91788579dd
12 changed files with 18 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
cat cat
echo ' echo '

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
# add amdgpu to MODULES array # add amdgpu to MODULES array
sed 's|^MODULES=(|MODULES=(amdgpu |' sed 's|^MODULES=(|MODULES=(amdgpu |'

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
# 1) and 2) remember last selected entry; 3) disable submenu # 1) and 2) remember last selected entry; 3) disable submenu
sed ' sed '

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
sed 's|^#PACKAGER=.*$|PACKAGER="Daniel Langbein <daniel@systemli.org>"|' sed 's|^#PACKAGER=.*$|PACKAGER="Daniel Langbein <daniel@systemli.org>"|'

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
cat cat
# syntax highlighting # syntax highlighting

View File

@ -3,7 +3,7 @@ _pkgname=pacman
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.2.2 pkgver=0.2.2
pkgrel=1 pkgrel=2
pkgdesc="pacman with configuration" pkgdesc="pacman with configuration"
arch=('any') arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"

View File

@ -1,9 +1,15 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
# save stdin (content of /etc/mkinitcpio.conf) in variable
stdin="$(cat)"
# Enable parallel downloads # Enable parallel downloads
sed 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|' echo "$stdin" | sed 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|'
printf '\n'
# Assert multilib is not enabled # Assert multilib is not enabled
! echo "$stdin" | grep --quiet '^\[multilib\].*$' ! echo "$stdin" | grep --quiet '^\[multilib\].*$'

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
cat cat
echo ' echo '

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
sed 's|Battery {}|//Battery {}|' sed 's|Battery {}|//Battery {}|'

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
cat cat
echo 'enable_pinpad = false' echo 'enable_pinpad = false'

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
# Decrease size # Decrease size
sed ' sed '

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
# stdin: default config # stdin: default config
# stdout: modified config # stdout: modified config
set -e
echo "NoDisplay=true" echo "NoDisplay=true"