summaryrefslogtreecommitdiffstats
path: root/update_scripts.sh
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2021-03-17 19:39:07 +0100
committerThorsten Leemhuis <fedora@leemhuis.info>2021-03-17 19:39:07 +0100
commit121cdd55fe1d658ea2a9cad2ed8eb6ae22ed785d (patch)
tree09aca67d95f46d2d6312807b723864452dc37b98 /update_scripts.sh
parent9d53a3102caf03deb8e8328dd586708b5328b853 (diff)
parentc7a5157d4de03982fcd2e3cd1f035858153ab349 (diff)
downloadkernel-121cdd55fe1d658ea2a9cad2ed8eb6ae22ed785d.tar.gz
kernel-121cdd55fe1d658ea2a9cad2ed8eb6ae22ed785d.tar.xz
kernel-121cdd55fe1d658ea2a9cad2ed8eb6ae22ed785d.zip
Diffstat (limited to 'update_scripts.sh')
-rwxr-xr-xupdate_scripts.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/update_scripts.sh b/update_scripts.sh
index 7cacfb6c1..9196e795a 100755
--- a/update_scripts.sh
+++ b/update_scripts.sh
@@ -1,12 +1,12 @@
-#!/bin/bash
+#!/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
- NEW=$(echo $i | sed -e "s/\.$TARGET//")
- cp $i $NEW
+for i in "$RPM_SOURCE_DIR"/*."$TARGET"; do
+ NEW=${i%.$TARGET}
+ cp "$i" "$NEW"
done