Gitiles
Code Review
Sign In
LeafOS
/
LeafOS-Devices
/
android_kernel_samsung_gta4xl
/
a79fb37222f9f0d22ca4ff9d8936c8660655fa79
/
.
/
scripts
/
find_matching_major.sh
blob: 33196b03937683f07ada29fce0e58a562adf191e [
file
] [
log
] [
blame
]
#!/bin/bash
# find_matching_version src_path version
TOP_DIR
=
"$1"
SRC_PATH
=
"$2"
FULL_SRC_PATH
=
"$1/$2"
INPUT_VERSION
=
"$3"
if
[[
-
d
"${FULL_SRC_PATH}_${INPUT_VERSION}"
]]
then
printf
"${SRC_PATH}_${INPUT_VERSION}"
else
printf
"${SRC_PATH}"
fi