mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
*/*: Use [[ ... ]] instead of POSIX [ ... ]
as per the coding style guide: https://projects.gentoo.org/qa/policy-guide/ebuild-format.html#pg0101 only these changes were done: [ -e ... ] to [[ -e ... ]] [ -z ... ] to [[ -z ... ]] [ -n ... ] to [[ -n ... ]] [ ! -f ... ] to [[ ! -f ... ]] [ -f ... ] to [[ -f ... ]] [ -d ... ] to [[ -d ... ]] the changes were generated using this command: ``` find -name '*.ebuild' -exec sed -i -E \ 's|([^[])\[+(\s+)([^]]+)(\s+)\]+([^]]\|$)|\1\[\[\2\3\4\]\]\5|g' \ {} \+ ``` this is aimed to be a series of commits meant to replace all instance of POSIX [ ... ] to bash's [[ ... ]], to make guru up to date with the coding style guide. this process is divided up into a series of commits in order to make review and testing more easy Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org> Part-of: https://codeberg.org/gentoo/guru/pulls/6 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
1 parent
d56f4baa37
commit
6481ca930b
15 files changed
+27
-27
No files matched your search
@@ -95,17 +95,17 @@ src_install() {
|
||||
# Install zwcad wrapper
|
||||
cat >> "${S}/opt/apps/${PKG_NAME}/zwcad" <<- EOF || die
|
||||
#!/bin/sh
|
||||
if [ -z "\${QT_IM_MODULE}" ]
|
||||
if [[ -z "\${QT_IM_MODULE}" ]]
|
||||
then
|
||||
if [ -n "\$(pidof fcitx5)" ]
|
||||
if [[ -n "\$(pidof fcitx5)" ]]
|
||||
then
|
||||
export XMODIFIERS="@im=fcitx"
|
||||
export QT_IM_MODULE=fcitx
|
||||
elif [ -n "\$(pidof ibus-daemon)" ]
|
||||
elif [[ -n "\$(pidof ibus-daemon)" ]]
|
||||
then
|
||||
export XMODIFIERS="@im=ibus"
|
||||
export QT_IM_MODULE=ibus
|
||||
elif [ -n "\$(pidof fcitx)" ]
|
||||
elif [[ -n "\$(pidof fcitx)" ]]
|
||||
then
|
||||
export XMODIFIERS="@im=fcitx"
|
||||
export QT_IM_MODULE=fcitx
|
||||
|
||||
Reference in new issue
Block a user