package/alsa-utils: fix install if directories exist
authorJohn Keeping <john@metanate.com>
Thu, 3 Sep 2020 13:35:33 +0000 (14:35 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 3 Sep 2020 19:01:07 +0000 (21:01 +0200)
commita421da99a716b236081e1aa9c0ef7f327b42818d
treefa64be1087287c5144f01509aaa7dbc3a05ff361
parent34a556a95d0a1e75f51b87898dc5e2ee1a124f20
package/alsa-utils: fix install if directories exist

"mkdir" (without "-p") fails if the target directory exists, which means
that if alsa-utils is being reinstalled or if other files have
previously been installed in the alsa-state.d or alsa-restore.d
directories the installation will fail.

Switch to "$(INSTALL) -d" which allows us to be explicit about the
permissions and handles the case of a pre-existing directory correctly.

Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/alsa-utils/alsa-utils.mk