summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhonjow2024-05-06 22:33:43 +0000
committerhonjow2024-05-06 22:33:43 +0000
commit979ab9e546c22807796f2c91b74fbead8c35439b (patch)
treefe26d7ec0cc20aa1dfa41d2d266ef65d1e86ea43
parent27a69812fc16facfb8384aa6533a3d7ecc4f917d (diff)
downloadaur-979ab9e546c22807796f2c91b74fbead8c35439b.tar.gz
Update AUR package
-rw-r--r--sk-chos-addon.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/sk-chos-addon.install b/sk-chos-addon.install
index 39bbf9a4cb21..cbd0517489f4 100644
--- a/sk-chos-addon.install
+++ b/sk-chos-addon.install
@@ -26,7 +26,7 @@ update_motd() {
echo "Updating motd..."
for rc_file in "${rc_files[@]}"; do
if [ -f "$rc_file" ]; then
- if ! grep -q "# user-motd" "$rc_file"; then
+ if ! grep -q "$start_line" "$rc_file"; then
echo "$motd_command" >>"$rc_file"
else
sed -i "/$start_line/,/$end_line/d" "$rc_file"