Fix directory permissions.

'install -d' does not take a set of access settings as first numerical
argument. At least on MacOS (BSD), but according to the manpage
(https://linux.die.net/man/1/install) on Linux, an extradirectory with
the name '755' were created.
master
Andreas Scherer 7 years ago
parent 0c37abd856
commit c6ad4585f7
  1. 4
      bash-git-prompt.spec

@ -27,12 +27,12 @@ install. It will disable the prompt accordingly after uninstall.
# These comments are here to avoid rpm lint issue
%install
install -d 755 %{buildroot}%{_datadir}/%{name}
install -dm 755 %{buildroot}%{_datadir}/%{name}
install -pm 755 *.sh %{buildroot}%{_datadir}/%{name}
#install -pm 755 *.py %{buildroot}%{_datadir}/%{name}
install -pm 755 *.fish %{buildroot}%{_datadir}/%{name}
install -pm 644 README.md %{buildroot}%{_datadir}/%{name}
install -d 755 %{buildroot}%{_datadir}/%{name}/themes
install -dm 755 %{buildroot}%{_datadir}/%{name}/themes
install -pm 644 themes/*.bgptheme %{buildroot}%{_datadir}/%{name}/themes
install -pm 644 themes/*.bgptemplate %{buildroot}%{_datadir}/%{name}/themes

Loading…
Cancel
Save