Skip to content

Commit 34b1e3a

Browse files
[qa] Add shell formatter to format shell scripts
1 parent dec1ed0 commit 34b1e3a

8 files changed

Lines changed: 269 additions & 150 deletions

File tree

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# config file for shell formatter
2+
3+
[*]
4+
binary_next_line = true
5+
switch_case_indent = true

install-dev.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ apt-get install -y lua5.1 liblua5.1-0-dev luarocks
1010
# install json-c
1111
apt-get install -y dh-autoreconf
1212
git clone https://github.com/json-c/json-c.git --depth=1
13-
cd json-c && cmake . && make install && cd .. || { echo 'Installing json-c failed!' ; exit 1; }
13+
cd json-c && cmake . && make install && cd .. || { echo 'Installing json-c failed!' && exit 1; }
1414
# install openwrt libubox and uci
1515
git clone https://git.openwrt.org/project/libubox.git --depth=1
16-
cd libubox && cmake . && make install && cd .. || { echo 'Installing libubox failed!' ; exit 1; }
16+
cd libubox && cmake . && make install && cd .. || { echo 'Installing libubox failed!' && exit 1; }
1717
git clone https://git.openwrt.org/project/uci.git --depth=1
18-
cd uci && cmake . && make install && cd .. || { echo 'Installing uci failed!' ; exit 1; }
18+
cd uci && cmake . && make install && cd .. || { echo 'Installing uci failed!' && exit 1; }
1919
# update links to shared libraries
2020
ldconfig -v
2121
# install luafilesystem

0 commit comments

Comments
 (0)