Loading setup.sh +15 −12 Original line number Original line Diff line number Diff line Loading @@ -2,18 +2,21 @@ #TODO ADD CONFIG PATH #TODO ADD CONFIG PATH python3 setup.py install #remove unnecessary dirs #remove unnecessary dirs rm -rf build dist nested.egg-info rm -rf build dist nested.egg-info if [ "$1" -eq "--user" ] then python3 setup.py install --user # move config file after local installation with 'pip3 install --user' mkdir -p ~/.local/etc mkdir -p ~/.local/etc/nested cp config.yml ~/.local/etc/nested/. cp nested/config/gt.style ~/.local/etc/nested else python3 setup.py install # move config file # move config file mkdir -p /etc/nested mkdir -p /etc/nested cp config.yml /etc/nested/. cp config.yml /etc/nested/. cp nested/config/gt.style /etc/nested/. cp nested/config/gt.style /etc/nested/. fi # #move config file after local installation with 'pip3 install --user' No newline at end of file # mkdir -p ~/.local/etc # mkdir -p ~/.local/etc/nested # cp config.yml ~/.local/etc/nested/. # cp nested/config/gt.style ~/.local/etc/nested No newline at end of file Loading
setup.sh +15 −12 Original line number Original line Diff line number Diff line Loading @@ -2,18 +2,21 @@ #TODO ADD CONFIG PATH #TODO ADD CONFIG PATH python3 setup.py install #remove unnecessary dirs #remove unnecessary dirs rm -rf build dist nested.egg-info rm -rf build dist nested.egg-info if [ "$1" -eq "--user" ] then python3 setup.py install --user # move config file after local installation with 'pip3 install --user' mkdir -p ~/.local/etc mkdir -p ~/.local/etc/nested cp config.yml ~/.local/etc/nested/. cp nested/config/gt.style ~/.local/etc/nested else python3 setup.py install # move config file # move config file mkdir -p /etc/nested mkdir -p /etc/nested cp config.yml /etc/nested/. cp config.yml /etc/nested/. cp nested/config/gt.style /etc/nested/. cp nested/config/gt.style /etc/nested/. fi # #move config file after local installation with 'pip3 install --user' No newline at end of file # mkdir -p ~/.local/etc # mkdir -p ~/.local/etc/nested # cp config.yml ~/.local/etc/nested/. # cp nested/config/gt.style ~/.local/etc/nested No newline at end of file