diff --git a/install.sh b/install.sh
index d65d19c..e08d4ad 100755
--- a/install.sh
+++ b/install.sh
@@ -625,9 +625,7 @@ EOF
# Add program arguments if provided
if [ -n "$komari_args" ]; then
- for arg in $komari_args; do
- echo " $arg" >> "$plist_file"
- done
+ echo "$komari_args" | xargs -n1 printf " %s\n"
fi
cat >> "$plist_file" << EOF
@@ -683,4 +681,4 @@ else
fi
log_config "Service: ${GREEN}$service_name${NC}"
log_config "Arguments: ${GREEN}$komari_args${NC}"
-echo -e "${WHITE}===========================================${NC}"
\ No newline at end of file
+echo -e "${WHITE}===========================================${NC}"