diff --git a/ansible-setup.sh b/ansible-setup.sh index 78cd065..2bed3a2 100755 --- a/ansible-setup.sh +++ b/ansible-setup.sh @@ -14,7 +14,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -if [ $(id -u) -eq 0 ]; then +if [ x$1 -ne x ]; then + install_path=$1 + if [ $(id -u) -eq 0 ]; then + bin_path=/usr/local/bin + else + bin_path="$HOME/.local/bin" + fi +elif [ $(id -u) -eq 0 ]; then install_path=/opt/ansible bin_path=/usr/local/bin else