diff options
author | Thorsten Leemhuis <fedora@leemhuis.info> | 2021-03-07 13:25:32 +0100 |
---|---|---|
committer | Thorsten Leemhuis <fedora@leemhuis.info> | 2021-03-07 13:32:55 +0100 |
commit | fb72952d5b63e40f63bfa1e3a5bce2262c424197 (patch) | |
tree | d1a9bf30437653b57b398fd3b4f3fb4897ca29cd /update_scripts.sh | |
parent | b9488a288ec844af97a516ac9ffe441221f6e67d (diff) | |
parent | 3422e04a2e31dba3e17af206f160d4fc409f4250 (diff) | |
download | kernel-5.11.4-125.vanilla.1.fc33.tar.gz kernel-5.11.4-125.vanilla.1.fc33.tar.xz kernel-5.11.4-125.vanilla.1.fc33.zip |
:merge origin/stabilization and update to 5.10.4kernel-5.11.4-125.vanilla.1.fc33kernel-5.11.4-125.vanilla.1.fc32
Diffstat (limited to 'update_scripts.sh')
-rwxr-xr-x | update_scripts.sh | 12 |
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 |