Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/update-systemd-from-27-to-238: Do nothing if systemd 238 is r…
…unning As a safety measure, check if systemd 238 already runs, and abort if it is. ``` @ryan:~> systemd --version systemd: unrecognized option '--version' Unknown option code ? ``` ``` $ systemd --version systemd 238 +PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid ``` ``` $ scripts/update-systemd-from-27-to-238.sh + hostconfig mx64 + systemd --version + echo 'systemd 238 is already running. Nothing to do.' systemd 238 is already running. Nothing to do. + exit 0 ``` From the manual page bash(1): > { list; } > list is simply executed in the current shell environment. list > must be terminated with a newline or semicolon. This is known > as a group command. The return status is the exit status of > list. Note that unlike the metacharacters ( and ), { and } are > reserved words and must occur where a reserved word is permitted > to be recognized. Since they do not cause a word break, they > must be separated from list by whitespace or another shell > metacharacter.
- Loading branch information