Liu Song’s Projects


~/Projects/confbook

git clone https://code.lsong.org/confbook

Commit

Commit
5a7663be2ac49305e4265e731b36ae1470d90c19
Author
Lsong <[email protected]>
Date
2023-12-04 14:07:47 +0000 +0000
Diffstat
 bin/rename-to-hash.sh | 2 +-

update


diff --git a/bin/rename-to-hash.sh b/bin/rename-to-hash.sh
index b81788474807c73f90a959ebd5c612ac9cc0c80d..ea79eed584c8b9f0f83c32b221fc74c82eda76dd 100755
--- a/bin/rename-to-hash.sh
+++ b/bin/rename-to-hash.sh
@@ -1,6 +1,6 @@
 #/usr/bin/env bash
 
-for f in $@; do
+for f in "$@"; do
   ext="${f##*.}"
   hash=$(md5sum "$f" | cut -d' ' -f1)
   filename="${hash}.${ext}"