aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-11-15 21:43:02 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-11-20 10:04:24 +0100
commitb952ebe8dcf46514b550b606a65818be2c30d3e9 (patch)
tree152f4e06c8a2e13b4bb89e489ae9e7e269d6e428
parentb4e0a1a85ed72eee3966664135cf88d8a583aa66 (diff)
downloadaports-b952ebe8dcf46514b550b606a65818be2c30d3e9.tar.gz
aports-b952ebe8dcf46514b550b606a65818be2c30d3e9.tar.bz2
aports-b952ebe8dcf46514b550b606a65818be2c30d3e9.tar.xz
main/alsa-utils: quote variable expansion
-rw-r--r--main/alsa-utils/APKBUILD2
-rw-r--r--main/alsa-utils/alsa.initd4
2 files changed, 3 insertions, 3 deletions
diff --git a/main/alsa-utils/APKBUILD b/main/alsa-utils/APKBUILD
index cc39ee383b..bc42f2dfbe 100644
--- a/main/alsa-utils/APKBUILD
+++ b/main/alsa-utils/APKBUILD
@@ -44,5 +44,5 @@ alsaconf() {
sha512sums="b7729659cd9809197dc30042f522f5103ff41ddc047f13f9c733c93f7e91a26f90cd864c70e654d12ef7a552b1d9ebe2727a24ec9fad03560cb7cdea906662ec alsa-utils-1.2.1.tar.bz2
f04155e1e391c7f36d44422c8e769bf9370117f6bbea6c0664e9858f7a676cc958e4260e4b4d226e71d0716f6be4e6fdd60f1d07cb7e9922fff378ceec01c47d alsaconf.patch
-a981bd87cb0b2e52a4b1bd4fc6870bc3fadca46a6810da8143e0c0344535b688bdc6d5eb0a797f8263e153b146eb7ae7cb77d6b2415f5aaa869a717c4c8d6da4 alsa.initd
+65f3530df01a2157003df9df4cb5b2c7a258257e8121786383610eb2872ffb5e8c88d070792ad74133a21c5fa54bac5047af4dcccb1854b456d2eeb8f0689076 alsa.initd
6e716e6230fd3d2c33e3cb2dbf572d632c9ac6452c1768388bea7d3ca22f7c72cf6bcd702580f45cb9089983582011c8b04cbdb4420d14fb988167b1391ea547 alsa.confd"
diff --git a/main/alsa-utils/alsa.initd b/main/alsa-utils/alsa.initd
index 65cd846859..778e1f682e 100644
--- a/main/alsa-utils/alsa.initd
+++ b/main/alsa-utils/alsa.initd
@@ -41,7 +41,7 @@ restore() {
for ossfile in "${alsastatedir}"/oss/card*_pcm* ; do
[ -e "${ossfile}" ] || continue
# We use cat because I'm not sure if cp works properly on /proc
- local procfile=${ossfile##${alsastatedir}/oss}
+ local procfile="${ossfile##${alsastatedir}/oss}"
procfile="$(echo "${procfile}" | sed -e 's,_,/,g')"
if [ -e /proc/asound/"${procfile}"/oss ] ; then
cat "${ossfile}" > /proc/asound/"${procfile}"/oss
@@ -65,7 +65,7 @@ save() {
for ossfile in /proc/asound/card*/pcm*/oss; do
[ -e "${ossfile}" ] || continue
- local device=${ossfile##/proc/asound/} ; device=${device%%/oss}
+ local device="${ossfile##/proc/asound/}" ; device="${device%%/oss}"
device="$(echo "${device}" | sed -e 's,/,_,g')"
mkdir -p "${alsastatedir}/oss/"
cp "${ossfile}" "${alsastatedir}/oss/${device}"