Skip to content

Commit 63133ae

Browse files
committed
Call the shells via a sh symlink to trigger their POSIX-compliant behavior (if special-cased based on how the shell was invoked)
1 parent 1ab1cad commit 63133ae

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/actions/build-dependencies/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ runs:
6262
docker system prune -a --volumes
6363
sudo apt remove -y *docker*
6464
# Install uidmap which will be required for the explicitly installed Docker
65-
sudo apt install uidmap
65+
sudo apt install -y uidmap
6666
if: runner.os == 'Linux'
6767

6868
- name: Update system dependencies

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ jobs:
208208
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
209209
- name: shellcheck
210210
run: |
211-
sudo apt install shellcheck
211+
sudo apt install -y shellcheck
212212
find . -iname "*.sh" | while read -r script; do
213213
shellcheck --enable=all --shell=sh --severity=info $script
214214
done

.github/workflows/stack_size.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@ jobs:
3737
GOBIN=$(pwd) go install github.com/yaegashi/muslstack@d19cc5866abce3ca59dfc1666df7cc97097d0933
3838
./muslstack -s $STACK ./monerod-muslstack
3939
40-
sudo apt install bash dash zsh busybox
41-
ln -s $(which busybox) /usr/bin/ash
42-
ln -s $(which busybox) /usr/bin/hush
43-
for shell in sh bash dash zsh ash hush; do
40+
sudo apt update -y
41+
sudo apt upgrade -y
42+
sudo apt install -y ksh bash tcsh dash zsh busybox
43+
sudo ln -s $(which busybox) /usr/bin/ash
44+
sudo ln -s $(which busybox) /usr/bin/hush
45+
for shell in sh ksh bash tcsh dash zsh ash hush; do
4446
cp monerod monerod-idss-$shell
45-
$shell ./orchestration/increase_default_stack_size.sh monerod-idss-$shell
47+
ln -s $(which $shell) sh
48+
./sh ./orchestration/increase_default_stack_size.sh monerod-idss-$shell
49+
rm ./sh
4650
done
4751
4852
find . -iname "monerod-*" | while read -r bin; do

0 commit comments

Comments
 (0)