diff options
author | Joan Figueras | 2021-06-16 23:53:57 +0200 |
---|---|---|
committer | Joan Figueras | 2021-06-16 23:53:57 +0200 |
commit | f5b046ebe9f2680f4c1abd6994a7d7ed0608571f (patch) | |
tree | ea167468e33ac49a1bd099ae6dfccde4138bb1cf /PKGBUILD | |
parent | 4bd9ffe3e4d0f83ef2b59663e715d379fd866a9c (diff) | |
download | aur-f5b046ebe9f2680f4c1abd6994a7d7ed0608571f.tar.gz |
Just in case myconfig is found but it's empty
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -165,7 +165,7 @@ prepare() { # If we detect partial file with scripts/config commands, we execute as a script # If not, it's a full config, will be replaced for _myconfig in "${SRCDEST}/myconfig" "${HOME}/.config/linux-xanmod/myconfig" "${XDG_CONFIG_HOME}/linux-xanmod/myconfig" ; do - if [ -f "${_myconfig}" ]; then + if [ -f "${_myconfig}" ] && [ "$(wc -l <"${_myconfig}")" -gt "0" ]; then if grep -q 'scripts/config' "${_myconfig}"; then # myconfig is a partial file. Executing as a script msg2 "Applying myconfig..." |