Signed-off-by: Abongwa Bonalais Amahnui <[email protected]>
---
scripts/bitbake-prserv-tool | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/scripts/bitbake-prserv-tool b/scripts/bitbake-prserv-tool
index e55d98c72e..68caa9fb66 100755
--- a/scripts/bitbake-prserv-tool
+++ b/scripts/bitbake-prserv-tool
@@ -5,7 +5,7 @@
help ()
{
- base=`basename $0`
+ base=`basename "$0"`
echo -e "Usage: $base command"
echo "Avaliable commands:"
echo -e "\texport <file.conf>: export and lock down the AUTOPR values from
the PR service into a file for release."
@@ -16,7 +16,7 @@ clean_cache()
{
s=`bitbake -e | grep ^CACHE= | cut -f2 -d\"`
if [ "x${s}" != "x" ]; then
- rm -rf ${s}
+ rm -rf "${s}"
fi
}
@@ -24,14 +24,14 @@ do_export ()
{
file=$1
[ "x${file}" == "x" ] && help && exit 1
- rm -f ${file}
+ rm -f "${file}"
clean_cache
bitbake -R conf/prexport.conf -p
s=`bitbake -R conf/prexport.conf -e | grep ^PRSERV_DUMPFILE= | cut -f2
-d\"`
if [ "x${s}" != "x" ];
then
- [ -e $s ] && mv -f $s $file && echo "Exporting to file $file succeeded!"
+ [ -e "$s" ] && mv -f "$s" "$file" && echo "Exporting to file $file
succeeded!"
return 0
fi
echo "Exporting to file $file failed!"
@@ -44,7 +44,7 @@ do_import ()
[ "x${file}" == "x" ] && help && exit 1
clean_cache
- bitbake -R conf/primport.conf -R $file -p
+ bitbake -R conf/primport.conf -R "$file" -p
ret=$?
[ $ret -eq 0 ] && echo "Importing from file $file succeeded!" || echo
"Importing from file $file failed!"
return $ret
@@ -60,13 +60,13 @@ do_migrate_localcount ()
return 1
fi
- rm -rf $df
+ rm -rf "$df"
clean_cache
echo "Exporting LOCALCOUNT to AUTOINCs..."
bitbake -R conf/migrate_localcount.conf -p
[ ! $? -eq 0 ] && echo "Exporting to file $df failed!" && exit 1
- if [ -e $df ];
+ if [ -e "$df" ];
then
echo "Exporting to file $df succeeded!"
else
@@ -75,7 +75,7 @@ do_migrate_localcount ()
fi
echo "Importing generated AUTOINC entries..."
- [ -e $df ] && do_import $df
+ [ -e "$df" ] && do_import "$df"
if [ ! $? -eq 0 ]
then
@@ -93,17 +93,17 @@ case $2 in
*.conf|*.inc)
;;
*)
- echo ERROR: $2 must end with .conf or .inc!
+ echo ERROR: "$2" must end with .conf or .inc!
exit 1
;;
esac
case $1 in
export)
- do_export $2
+ do_export "$2"
;;
import)
- do_import $2
+ do_import "$2"
;;
migrate_localcount)
do_migrate_localcount
--
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#164310):
https://lists.openembedded.org/g/openembedded-core/message/164310
Mute This Topic: https://lists.openembedded.org/mt/90437025/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-