katana/fetch.sh
Ivailo Monev 584bd0f605 fetch.sh: correct base URL to repositories
for reference:
https://github.com/fluxer/katana/issues/40

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-01 09:31:16 +03:00

22 lines
389 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/$p.git"
fi
done