summaryrefslogtreecommitdiffstats
path: root/update_scripts.sh
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2020-09-22 06:20:53 +0200
committerThorsten Leemhuis <fedora@leemhuis.info>2020-09-22 06:20:53 +0200
commit1a7e53d476539a72aa1a634700398e77842f30c9 (patch)
tree7a48021c0ac6d62e61a9c50ec22c6b6652b716cc /update_scripts.sh
parent6baf25fc235c4993f8fc55815e6abb9755310240 (diff)
parentabdc294d6d5c88f1ea905ee192686261e47a473a (diff)
downloadkernel-1a7e53d476539a72aa1a634700398e77842f30c9.tar.gz
kernel-1a7e53d476539a72aa1a634700398e77842f30c9.tar.xz
kernel-1a7e53d476539a72aa1a634700398e77842f30c9.zip
Diffstat (limited to 'update_scripts.sh')
-rwxr-xr-xupdate_scripts.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/update_scripts.sh b/update_scripts.sh
index 5c3dbaeb9..9196e795a 100755
--- a/update_scripts.sh
+++ b/update_scripts.sh
@@ -1,12 +1,12 @@
#!/bin/sh
-if [ -z $1 ]; then
+if [ -z "$1" ]; then
exit 1
fi
-TARGET=$1
+TARGET="$1"
-for i in $RPM_SOURCE_DIR/*.$TARGET; do
+for i in "$RPM_SOURCE_DIR"/*."$TARGET"; do
NEW=${i%.$TARGET}
- cp $i $NEW
+ cp "$i" "$NEW"
done