Advertisement
FranzVuttke

oneline_if_else.sh

Dec 20th, 2023 (edited)
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | Source Code | 0 0
  1. # docs: https://stackoverflow.com/questions/28353244/error-in-linux-console-couldnt-get-a-file-descriptor-referring-to-the-console
  2.  
  3. if [[ `tty` =~ ^/dev/tty[0-9]+ ]] ; then setfont ... ; fi
  4. if [[ `tty` =~ ^/dev/tty[0-9]+ ]] ; then  echo "setfont ..." ; else echo "not setfont" ; fi
  5.  
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement