summaryrefslogtreecommitdiff
path: root/toggle-repo.sh
diff options
context:
space:
mode:
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
commit603c825e7294d12544f88b8be3da448d591c795a (patch)
treec274d8100c10cb2909c9dc808904dcefe6e36617 /toggle-repo.sh
parent6cf03557358c586fbe1a5db0c6614c386a3f4763 (diff)
downloaddotfiles-603c825e7294d12544f88b8be3da448d591c795a.tar
dotfiles-603c825e7294d12544f88b8be3da448d591c795a.tar.gz
dotfiles-603c825e7294d12544f88b8be3da448d591c795a.zip
Renamed toggle repo script to improve naming consistency
Diffstat (limited to 'toggle-repo.sh')
-rwxr-xr-xtoggle-repo.sh7
1 files changed, 7 insertions, 0 deletions
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