2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-03 23:15:33 +00:00
This commit is contained in:
quadrismegistus 2020-09-14 18:01:36 +01:00
parent 7b33105057
commit c8039a7122

View File

@ -19,11 +19,12 @@ echo '
'
# install dir?
echo "where should komrade live?"
read -p "[~/komrade] " path_komrade
echo "Where should komrade live on your device?"
path_komrade_default="`realpath ~/komrade`"
read -p "[$path_komrade_default] " path_komrade
if [ -z "$path_komrade" ]
then
path_komrade="`realpath ~/komrade`"
path_komrade=path_komrade_default
fi
if [ ! -d "$path_komrade" ]
then
@ -42,6 +43,7 @@ echo '
path_repo="$path_komrade/code"
if command -v git &> /dev/null
then
echo "using git..."
if [ -d "$path_repo" ]
then
cd $path_repo