summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsolenv/bin/bin_library_info.sh2
-rwxr-xr-xsysui/desktop/share/apparmor.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/solenv/bin/bin_library_info.sh b/solenv/bin/bin_library_info.sh
index 88925bf1970b..94bc262c0bc3 100755
--- a/solenv/bin/bin_library_info.sh
+++ b/solenv/bin/bin_library_info.sh
@@ -34,7 +34,7 @@ die()
get_config_sha()
{
pushd ${SRCDIR?} > /dev/null
- cat ${BUILDDIR?}/config_host.mk | git hash-object --stdin
+ git hash-object ${BUILDDIR?}/config_host.mk
popd > /dev/null
}
diff --git a/sysui/desktop/share/apparmor.sh b/sysui/desktop/share/apparmor.sh
index 4a91310b1a29..59803e1ae4db 100755
--- a/sysui/desktop/share/apparmor.sh
+++ b/sysui/desktop/share/apparmor.sh
@@ -37,10 +37,10 @@ INST_ROOT_FORMAT=${INST_ROOT_FORMAT////.}
#Need to escape / for sed
INST_ROOT_SED=${INST_ROOT////\\/}
-for filename in `ls $PROFILESFROM`
+for filename in $(ls $PROFILESFROM)
do
tourl=$INSTALLTO$INST_ROOT_FORMAT$filename
- cat $PROFILESFROM$filename | sed "s/INSTDIR-/$INST_ROOT_SED/g" > $tourl
+ sed "s/INSTDIR-/$INST_ROOT_SED/g" $PROFILESFROM$filename > $tourl
echo "$tourl"
done