-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vitor Bandeira <[email protected]>
- Loading branch information
Vitor Bandeira
committed
Nov 21, 2024
1 parent
7090b3d
commit 1fc14d4
Showing
2 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ $# -ne 1 ]]; then | ||
echo "Error: This script requires exactly one argument." | ||
echo "usage: $0 <VERSION>" | ||
exit 1 | ||
fi | ||
|
||
for file in ../*${1}*; do | ||
base_name=$(basename "$file") | ||
name="${base_name%.*}" | ||
ext="${base_name##*.}" | ||
mv "$file" "${name}-${os_name}.${ext}" | ||
done |