📚 [Bash] 디렉토리별 git pull 스크립트 만들기

Category: Bash | 📅 December 20, 2021

#!/bin/sh

SOURCE=/mnt/Workspace
DIR=`ls -d $SOURCE/*/`

for i in $DIR
do
  target=$i
  cd $target
  git pull
  cd -
#  echo $target
done
💭 Reviews
  • 뭔가 어렵다 -_-;
  • 🏷️ Tags
  • #git-pull  
  • #script  
  • #git  
  • #Linux  
  • #bash