Update update.sh
This commit is contained in:
parent
c02e3d925c
commit
9ae328633f
@ -5,9 +5,11 @@
|
||||
# . update.sh
|
||||
# päivitä
|
||||
|
||||
# rm päivitä
|
||||
rm päivitä
|
||||
|
||||
printf '#!/bin/bash\n' > päivitä
|
||||
printf 'echo ""\n' >> päivitä
|
||||
printf 'echo ""\n' >> päivitä
|
||||
|
||||
# Hae käyttöjärjestelmän nimi ja versio
|
||||
OS_NAME=$(grep '^PRETTY_NAME=' /etc/os-release | cut -d= -f2 | tr -d '"')
|
||||
@ -19,6 +21,8 @@ BITS="$(getconf LONG_BIT)"
|
||||
# Tulosta tiedot skriptiin
|
||||
printf 'echo "Käyttöjärjestelmä: %s"\n' "$OS_NAME" >> päivitä
|
||||
printf 'echo "Arkkitehtuuri: %s (%s-bittinen)"\n' "$ARCH" "$BITS" >> päivitä
|
||||
printf 'echo ""\n' >> päivitä
|
||||
printf 'echo ""\n' >> päivitä
|
||||
|
||||
printf 'rm update.sh\n' >> päivitä
|
||||
printf 'rm update.sh.*\n' >> päivitä
|
||||
|
Loading…
x
Reference in New Issue
Block a user