[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

%post script weirdness



In my spec file I have a %post script to create a .desktop file using a here doc.  It creates the file but the file name has a ^M at the end, so it doesn’t show up in the menu.  My script looks like this:

 

%post

cat <<EOF > /usr/share/applications/mycompany-myapp.desktop

[Desktop Entry]

Version=x.y

Encoding=UTF-8

Name=MyApp

Path=$RPM_INSTALL_PREFIX/myapp

EOF

 

Any ideas why it is adding the ^M?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]