We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db5e886 commit ae8d617Copy full SHA for ae8d617
1 file changed
install.sh
@@ -95,7 +95,7 @@ _nlt_canonical_bin_dir() {
95
96
_nlt_rc_has_managed_block() {
97
local f="$1"
98
- [[ -f "$f" ]] && grep -Fq '--- nltdeploy PATH' "$f"
+ [[ -f "$f" ]] && grep -Fq -- '--- nltdeploy PATH' "$f"
99
}
100
101
_nlt_rc_path_mentions_bin() {
@@ -177,7 +177,7 @@ _nlt_install_path_to_profiles() {
177
_remove_managed_path_block_from_file() {
178
179
[[ -f "$f" ]] || return 0
180
- grep -Fq '--- nltdeploy PATH' "$f" || return 0
+ grep -Fq -- '--- nltdeploy PATH' "$f" || return 0
181
local start end tmp
182
start="$(grep -nF '# --- nltdeploy PATH (github.com/farfarfun/nltdeploy install.sh) ---' "$f" | head -1 | cut -d: -f1)"
183
end="$(grep -nF '# --- end nltdeploy PATH ---' "$f" | head -1 | cut -d: -f1)"
0 commit comments