mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
10 lines
225 B
Bash
10 lines
225 B
Bash
|
#!/bin/sh
|
||
|
git branch | grep -q \*
|
||
|
if [ $? -eq 0 ]; then
|
||
|
git symbolic-ref HEAD refs/heads/dummy
|
||
|
echo "Switched to fake branch 'dummy'"
|
||
|
else
|
||
|
git symbolic-ref HEAD refs/heads/master
|
||
|
echo "Switched to branch 'master'"
|
||
|
fi
|