mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-23 18:32:47 +00:00
22 lines
395 B
Bash
Executable file
22 lines
395 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cwd="$(pwd)"
|
|
|
|
if ! type -p git ;then
|
|
echo "Git is not installed"
|
|
exit 1
|
|
fi
|
|
|
|
for p in "${packs[@]}";do
|
|
if [ -d "$p/.git" ];then
|
|
echo "Updating sources of $p..."
|
|
cd "$cwd/$p"
|
|
git pull
|
|
cd "$cwd"
|
|
else
|
|
echo "Fetching sources of $p..."
|
|
git clone --depth=1 "https://scm.osdn.net/gitroot/kde/Katie/$p.git"
|
|
fi
|
|
done
|