зеркало из https://github.com/telerik/docs-seed.git
fix: Variable init
This commit is contained in:
Родитель
e3a6d5ae56
Коммит
f26cb7bcbf
5
build.sh
5
build.sh
|
@ -1,9 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
config_file = "_config.yml"
|
config_file="_config.yml"
|
||||||
if [ ! -z "$1" ]
|
if [ ! -z "$1" ]
|
||||||
then
|
then
|
||||||
config_file = $1
|
echo "Using configuration file: $1"
|
||||||
|
config_file=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Start building..."
|
echo "Start building..."
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
clone_path = ".tmp/"
|
dir=".tmp"
|
||||||
if [ ! -z "$1" ]
|
if [ ! -z "$1" ]
|
||||||
then
|
then
|
||||||
clone_path = $1
|
echo "Copying to $1"
|
||||||
|
dir=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Start copying..."
|
echo "Start copying..."
|
||||||
|
|
||||||
cp -r $clone_path/* "./"
|
cp -r $dir/* "./"
|
||||||
|
|
||||||
echo "Copying finished."
|
echo "Copying finished."
|
||||||
|
|
Загрузка…
Ссылка в новой задаче