Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install shell script needs to be "safe" to run #1

Open
petecarapetyan opened this issue May 21, 2021 · 0 comments
Open

Install shell script needs to be "safe" to run #1

petecarapetyan opened this issue May 21, 2021 · 0 comments

Comments

@petecarapetyan
Copy link
Owner

This is already documented on stack overflow, just needs to be implemented

This is for the try.sh shell script that runs the theme installer swapper

High level logic:

  • if it's a fresh run and you're creating a new directory just write it
  • If the directory exists, enter the next if exists conditional loop
  • If exists and not a git repo require "unsafe" arg to overwrite
  • If exists and not unsafe arg then require git status -porcelain or whatever that is

So then if all those are OK only then overwrite a folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant