-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtarget-triplet-to-arch.sh
More file actions
executable file
·18 lines (17 loc) · 1010 Bytes
/
target-triplet-to-arch.sh
File metadata and controls
executable file
·18 lines (17 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# **************************************************************************** #
# _ #
# __ ___.--'_\`. #
# target-triplet-to-arch.sh ( _\`.' - 'o\` ) #
# _\\.'_' _.-' #
# By: mathroy0310 <maroy0310@gmail.com> ( \`. ) //\\\` #
# \\_'-`---'\\__, #
# Created: 2024/08/04 01:33:10 by mathroy0310 \` `-\\ #
# Updated: 2024/08/04 01:33:11 by mathroy0310 ` #
# #
# **************************************************************************** #
#!/bin/sh
if echo "$1" | grep -Eq 'i[[:digit:]]86-'; then
echo i386
else
echo "$1" | grep -Eo '^[[:alnum:]_]*'
fi