-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexis Quintero
committed
Aug 19, 2022
1 parent
22695dc
commit a35fb5e
Showing
2 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# Modulos del pipline | ||
|
||
install: | ||
./bin/install.sh | ||
test: | ||
./bin/test.sh | ||
sra2fq: | ||
|
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 |
---|---|---|
@@ -1,8 +1,34 @@ | ||
#!/bin/bash | ||
echo "Detectando Distro Linux" | ||
|
||
printf "\nPrimer script busca archivos especificos a cada distro\n" | ||
# Fedora/RHEL/CentOS distro | ||
if [ -f /etc/redhat-release ]; then | ||
echo "FED" | ||
# Debian/Ubuntu | ||
elif [ -r /lib/lsb/init-functions ]; then | ||
echo "DEB" | ||
elif [ -f /etc/arch-release ]; then | ||
echo "ARCH" | ||
fi | ||
printf "\n" | ||
## Otra prueba de script | ||
printf "Segundo script de prueba usa /etc/os-release\n" | ||
DISTRIB=$(awk -F= '/^NAME/{print $2}' /etc/os-release) | ||
if [[ ${DISTRIB} = "Ubuntu"* ]]; then | ||
if uname -a | grep -q '^Linux.*Microsoft'; then | ||
# ubuntu via WSL Windows Subsystem for Linux | ||
echo "Windows Subsystem for Linux" | ||
else | ||
# Native Ubuntu | ||
echo "Ubuntu" | ||
fi | ||
elif [[ ${DISTRIB} = '"Debian"'* ]]; then | ||
echo "Debian" | ||
elif [[ ${DISTRIB} = '"Pop!_OS"'* ]]; then | ||
echo "Pop! OS" | ||
fi | ||
|
||
# Este archivo es el que me va a servir | ||
printf "\nEste archivo es el que va a servir, probar con maquinas virtuales /etc/os-release\n" | ||
printf "Pues al filtrar nos daria algo como esto: "$(awk -F= '/^NAME/{print $2}' /etc/os-release)"\n" |