forked from Mirrors/usk
Build Script angepasst um arch derivate zu Unterstützen.
This commit is contained in:
parent
71266314eb
commit
8eb749f6f2
2 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ fi
|
|||
# detect distribution
|
||||
if [ -f /etc/os-release ]; then
|
||||
. /etc/os-release
|
||||
DISTRO=$ID
|
||||
DISTRO=${ID-LIKE:-$ID}
|
||||
else
|
||||
echo -e "${RED}Error: Cannot detect distribution${NC}"
|
||||
exit 1
|
||||
|
|
@ -128,4 +128,4 @@ echo -e " - update.bin: ${WORKSPACE}/build/usk/update.bin"
|
|||
USK_VERSION_LO=$(sed -n 's/#define VER_LO \([0-9]*\)/\1/p' "$USK_DIR/config.h")
|
||||
USK_VERSION_HI=$(sed -n 's/#define VER_HI \([0-9]*\)/\1/p' "$USK_DIR/config.h")
|
||||
USK_VERSION="${USK_VERSION_HI}.${USK_VERSION_LO}"
|
||||
echo -e "${GREEN}Version: Picofly ${USK_VERSION}${NC}\n"
|
||||
echo -e "${GREEN}Version: Picofly ${USK_VERSION}${NC}\n"
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ echo -e "${GREEN}=== Picofly build script (multi-distro) ===${NC}\n"
|
|||
# detect distribution
|
||||
if [ -f /etc/os-release ]; then
|
||||
. /etc/os-release
|
||||
DISTRO=$ID
|
||||
DISTRO=${ID_LIKE:-$ID}
|
||||
else
|
||||
echo -e "${RED}Error: Cannot detect distribution${NC}"
|
||||
exit 1
|
||||
|
|
@ -127,4 +127,4 @@ echo -e " - update.bin: ${WORKSPACE}/build/usk/update.bin"
|
|||
USK_VERSION_LO=$(sed -n 's/#define VER_LO \([0-9]*\)/\1/p' "$WORKSPACE/usk/config.h")
|
||||
USK_VERSION_HI=$(sed -n 's/#define VER_HI \([0-9]*\)/\1/p' "$WORKSPACE/usk/config.h")
|
||||
USK_VERSION="${USK_VERSION_HI}.${USK_VERSION_LO}"
|
||||
echo -e "${GREEN}Version: Picofly ${USK_VERSION}${NC}\n"
|
||||
echo -e "${GREEN}Version: Picofly ${USK_VERSION}${NC}\n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue