Summary Files CommitsBranches @commit@diff
path: root/toggle-repo.sh
diff options
context:
space:
mode:
Commit603c825e7294d12544f88b8be3da448d591c795a (patch )
AuthorSyndamia <kamen.d.mladenov@protonmail.com>2021-06-13 16:14:44 +0300
CommitterSyndamia <kamen.d.mladenov@protonmail.com>2021-06-13 16:14:44 +0300
Filesc274d8100c10cb2909c9dc808904dcefe6e36617 /toggle-repo.sh
dotfiles-603c825e7294d12544f88b8be3da448d591c795a.tar
dotfiles-603c825e7294d12544f88b8be3da448d591c795a.tar.gz
dotfiles-603c825e7294d12544f88b8be3da448d591c795a.zip
Parent6cf03557358c586fbe1a5db0c6614c386a3f4763 (diff)
Renamed toggle repo script to improve naming consistency
1 files changed, 7 insertions, 0 deletions
-rwxr-xr-xtoggle-repo.sh7
diff --git a/toggle-repo.sh b/toggle-repo.sh
new file mode 100755
index 0000000..ffbcb57
--- /dev/null
+++ b/toggle-repo.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [[ -d ".git" ]]; then
+ sudo mv .git .git.disabled
+else
+ sudo mv .git.disabled .git
+fi