Files
git.taskfile.build/bin/sync-git-folder
T

16 lines
299 B
Bash
Executable File

#!/bin/bash
sync-git-folder() {
if [[ -z "$1" ]]; then
echo '$1/branch is empty.'
exit
fi
if [[ -z "$2" ]]; then
echo '$2/path is empty.'
exit
fi
echo 'Switch and pull git folders.'
switch-git-folder "$1" "$2"
pull-git-folder "$1" "$2"
}