Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit e018a5a

Browse files
author
icymind
committed
change 'bash' to '/bin/bash'
1 parent fdf9a51 commit e018a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/vrouter-local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class VRouter {
160160
const cmd1 = `/sbin/route change default ${ip}`
161161
const cmd2 = `/usr/sbin/networksetup -setdnsservers "${info[0]}" "${ip}"`
162162
// https://askubuntu.com/questions/634620/when-using-and-sudo-on-the-first-command-is-the-second-command-run-as-sudo-t
163-
return this.sudoExec(`bash -c '${cmd1} && ${cmd2}'`)
163+
return this.sudoExec(`/bin/bash -c '${cmd1} && ${cmd2}'`)
164164
}
165165
async getActiveAdapter () {
166166
let cmd = String.raw`cat <<EOF | scutil

0 commit comments

Comments
 (0)