diff options
author | Joan Figueras | 2020-10-15 00:38:27 +0200 |
---|---|---|
committer | Joan Figueras | 2020-10-15 00:38:27 +0200 |
commit | e1fd53fffc3dd93f98f2b42d760bfd65450ccda7 (patch) | |
tree | fa7cb05fad0f8abbfaef03d8532e10284608010c | |
parent | 3ec732a81d93cfefab315f7dfdcfd0dc42980a6d (diff) | |
download | aur-e1fd53fffc3dd93f98f2b42d760bfd65450ccda7.tar.gz |
Changed myconfig logic
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -167,8 +167,8 @@ prepare() { # If it's a full config, will be replaced # If not, you should use scripts/config commands, one by line if [ -f "${startdir}/myconfig" ]; then - if [ $(wc -l < "${startdir}/myconfig") -gt 5000 ]; then - # myconfig is a full config file. Replace it + if ! grep -q 'scripts/config' "${startdir}/myconfig"; then + # myconfig is a full config file. Replacing default .config msg2 "Using user CUSTOM config..." cp -f "${startdir}"/myconfig .config else |