fix 'rep'

This commit is contained in:
Егор 2024-11-06 22:44:45 +05:00 committed by GitHub
parent c270ebf7c1
commit 879deb7bf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,7 +121,7 @@ sudo ln -sf /usr/lib/libmpfr.so.6 /usr/lib/libmpfr.so.4
print_ok "Successfully!"
if ! rep -q 'export PATH=$PATH:/home/autobuild/tools/win32/bin' ~/.bashrc; then
if ! grep -q 'export PATH=$PATH:/home/autobuild/tools/win32/bin' ~/.bashrc; then
export PATH=$PATH:/home/autobuild/tools/win32/bin
print_msg "Adding '/home/autobuild/tools/win32/bin' to '~/.bashrc'"
echo 'export PATH=$PATH:/home/autobuild/tools/win32/bin' >> ~/.bashrc