aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-30 12:14:42 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-30 12:14:42 +0000
commit708714a45af5f0d7b87d0a4073b3442b39194f6d (patch)
treeb4a8ab71959c4b88506a44b526a487352064a3d5
parent2ed0893a08fc9bf25a2c778653a1fd223b2fc6d4 (diff)
downloadremove-old-kernels-708714a45af5f0d7b87d0a4073b3442b39194f6d.tar
remove-old-kernels-708714a45af5f0d7b87d0a4073b3442b39194f6d.tar.gz
remove-old-kernels-708714a45af5f0d7b87d0a4073b3442b39194f6d.tar.bz2
remove-old-kernels-708714a45af5f0d7b87d0a4073b3442b39194f6d.tar.xz
remove-old-kernels-708714a45af5f0d7b87d0a4073b3442b39194f6d.zip
clean mk-mo script
-rwxr-xr-xmk-mo10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk-mo b/mk-mo
index 70975ee..6017830 100755
--- a/mk-mo
+++ b/mk-mo
@@ -6,17 +6,17 @@
mkdir locale
-cd po
+cd po || exit 1
for po in *.po; do
-echo $po
+echo "$po"
-molang=$(echo $po|rev|cut -d. -f2-|rev)
+molang=$(echo "$po"|rev|cut -d. -f2-|rev)
-mkdir -p ../locale/$molang/LC_MESSAGES
+mkdir -p ../locale/"$molang"/LC_MESSAGES
-msgfmt -vco ../locale/$molang/LC_MESSAGES/remove-old-kernels.mo $po
+msgfmt -vco ../locale/"$molang"/LC_MESSAGES/remove-old-kernels.mo "$po"
done