%post script weirdness

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

 



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?

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux