diff --git a/.gitignore b/.gitignore index e69de29..923b0be 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +# ignore locally installed shArg +.sh_arg \ No newline at end of file diff --git a/0 b/0 deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/setup.sh b/scripts/setup.sh index 578da7c..5e5f256 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -7,5 +7,5 @@ if [ ! -d $SH_ARG_BASE ]; then fi if [ ! -f "$SH_ARG_BASE/shArg.sh" ]; then - wget --directory-prefix=$SH_ARG_BASE https://raw.githubusercontent.com/hattan/shArg/scripts/shArg.sh + wget --quiet --directory-prefix=$SH_ARG_BASE https://raw.githubusercontent.com/hattan/shArg/main/scripts/shArg.sh fi diff --git a/spec/integration/setup_spec.sh b/spec/integration/setup_spec.sh new file mode 100644 index 0000000..73bf9dd --- /dev/null +++ b/spec/integration/setup_spec.sh @@ -0,0 +1,10 @@ + Describe 'shArg' + + Context "Setup script tests" + It 'should create a .sh_arg folder' + When run script scripts/setup.sh + Path shArg-file=.sh_arg/shArg.sh + The path shArg-file should be exist + End + End +End \ No newline at end of file