Skip to content

Commit f7a877e

Browse files
committed
nodejs, rails7: fixed yarn install error
1 parent d855e7a commit f7a877e

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

nodejs/build/scripts/03-yarn

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ export DEBIAN_FRONTEND=noninteractive
77
##
88
## install yarn (https://yarnpkg.com/en/docs/install)
99
##
10-
apt-get install -y --no-install-recommends gnupg
11-
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | \
12-
gpg --no-default-keyring --keyring /tmp/yarn.gpg --import
13-
gpg --no-default-keyring --keyring /tmp/yarn.gpg \
14-
--export --output /etc/apt/keyrings/yarn.gpg
15-
rm /tmp/yarn.gpg
10+
curl -sSf https://dl.yarnpkg.com/debian/pubkey.gpg \
11+
-o /etc/apt/keyrings/yarn-archive-keyring.asc
1612

1713
echo "deb [signed-by=/etc/apt/keyrings/yarn.gpg] http://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
1814
if etckeeper unclean 1>/dev/null 2>/dev/null; then

rails7/build/scripts/03-yarn

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ export DEBIAN_FRONTEND=noninteractive
77
##
88
## install yarn (https://yarnpkg.com/en/docs/install)
99
##
10-
apt-get install -y --no-install-recommends gnupg
11-
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | \
12-
gpg --no-default-keyring --keyring /tmp/yarn.gpg --import
13-
gpg --no-default-keyring --keyring /tmp/yarn.gpg \
14-
--export --output /etc/apt/keyrings/yarn.gpg
15-
rm /tmp/yarn.gpg
10+
curl -sSf https://dl.yarnpkg.com/debian/pubkey.gpg \
11+
-o /etc/apt/keyrings/yarn-archive-keyring.asc
1612

1713
echo "deb [signed-by=/etc/apt/keyrings/yarn.gpg] http://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
1814
if etckeeper unclean 1>/dev/null 2>/dev/null; then

0 commit comments

Comments
 (0)