GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    aliss (aliss@outerheaven.club)'s status on Monday, 19-Sep-2022 06:59:09 JSTalissaliss
    in reply to
    • Tosti ?
    • aliss

    @tost tosti tosti tosti i achieved to make mine shorter and beat yours for 18 characters ????

    mine:

    #!/bin/sh check_distro() { distro=$(sed -n 's/^\(ID\|ID_LIKE\)= *\([^ ]*\) */\2/p' /etc/os-release) case $distro in debian) : # do debian-based thing ;; fedora) : # do fedora-based thing ;; *) : # err distro not supported ;; esac } check_distro

    yours:

    #!/bin/sh check_distro() { for distro in debian fedora error do grep -qe $distro /etc/os-release && break done case $distro in debian) : # do debian-based thing ;; fedora) : # do fedora-based thing ;; *) : # err distro not supported ;; esac } check_distro
    In conversationMonday, 19-Sep-2022 06:59:09 JST from gnusocial.jppermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.