User Tools

Site Tools


bash:distro-detection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
bash:os-detection [2020/04/21 15:28] – created dreiggybash:os-detection [2020/04/21 15:29] dreiggy
Line 3: Line 3:
 Snippet for Linux distro detection: Snippet for Linux distro detection:
  
-[code bash]+<code bash>
 # Check OS and VERSION # Check OS and VERSION
 if [ -f /etc/os-release ]; then if [ -f /etc/os-release ]; then
Line 34: Line 34:
     VER=$(uname -r)     VER=$(uname -r)
 fi fi
-[/code]+</code>
bash/distro-detection.txt · Last modified: 2020/04/21 15:31 by dreiggy

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki