Skip to content

Commit

Permalink
[!] zshrc added. running_docker function fix
Browse files Browse the repository at this point in the history
  • Loading branch information
g31s committed Aug 20, 2020
1 parent 928574f commit f6d98c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ sudo docker build \
echo "# Pdocker alias" >> ~/.bash_profile
# Add -v ~/hostpath/Projects:/Projects to share volume
echo "alias pdocker=`pwd`/pdocker.sh" >> ~/.bash_profile
echo "alias pdocker=`pwd`/pdocker.sh" >> ~/.zshrc
source ~/.bash_profile

echo "[*] Image Building Complete."
Expand Down
4 changes: 2 additions & 2 deletions pdocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ user_input(){
}

# docker_running? check if docker is running
docker_running?(){
docker_running(){
if [[ $(pgrep -f docker | wc -l) -eq 1 ]];
then
echo '[!] Unable to find docker.'
Expand Down Expand Up @@ -206,7 +206,7 @@ create_new_container(){
}

#Everything starts here..
docker_running?
docker_running

# Check for command line arugments
case $1 in
Expand Down

0 comments on commit f6d98c4

Please sign in to comment.