Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLivia Medeiros <74449973+LiviaMedeiros@users.noreply.github.com>2022-04-15 01:08:55 +0300
committerGitHub <noreply@github.com>2022-04-15 01:08:55 +0300
commit30934e45d867601f0158d176b110972cec288a2c (patch)
tree877ad70b2c90be7413730c5b5c31584f9fd7b83e /tools/macos-firewall.sh
parent19064bec341185a8c15fc438cfcf0df8633a179e (diff)
tools: lint osx shell scripts
PR-URL: https://github.com/nodejs/node/pull/42712 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'tools/macos-firewall.sh')
-rwxr-xr-xtools/macos-firewall.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/macos-firewall.sh b/tools/macos-firewall.sh
index b6050aaf345..4dfa849bc3a 100755
--- a/tools/macos-firewall.sh
+++ b/tools/macos-firewall.sh
@@ -3,16 +3,16 @@
# popups asking to accept incoming network connections when
# running tests.
SFW="/usr/libexec/ApplicationFirewall/socketfilterfw"
-TOOLSDIR="`dirname \"$0\"`"
-TOOLSDIR="`( cd \"$TOOLSDIR\" && pwd) `"
-ROOTDIR="`( cd \"$TOOLSDIR/..\" && pwd) `"
+TOOLSDIR="$(dirname "$0")"
+TOOLSDIR="$(cd "$TOOLSDIR" && pwd)"
+ROOTDIR="$(cd "$TOOLSDIR/.." && pwd)"
OUTDIR="$TOOLSDIR/../out"
# Using cd and pwd here so that the path used for socketfilterfw does not
# contain a '..', which seems to cause the rules to be incorrectly added
# and they are not removed when this script is re-run. Instead the new
# rules are simply appended. By using pwd we can get the full path
# without '..' and things work as expected.
-OUTDIR="`( cd \"$OUTDIR\" && pwd) `"
+OUTDIR="$(cd "$OUTDIR" && pwd)"
NODE_RELEASE="$OUTDIR/Release/node"
NODE_DEBUG="$OUTDIR/Debug/node"
NODE_LINK="$ROOTDIR/node"