Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Jan 20, 2025
1 parent 4bc0e87 commit 156ec79
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions scripts/symlink_ignore.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ target=""
# Parse command line options
while [[ $# -gt 0 ]]; do
case $1 in
--source)
source="$2"
shift # past argument
shift # past value
;;
--target)
target="$2"
shift # past argument
shift # past value
;;
*)
echo "Unknown option: $1"
exit 1
;;
--source)
source="$2"
shift # past argument
shift # past value
;;
--target)
target="$2"
shift # past argument
shift # past value
;;
*)
echo "Unknown option: $1"
exit 1
;;
esac
done

Expand All @@ -36,8 +36,8 @@ original_dir=$(pwd)
cd ..

ln -f -s "muggle/$source" "$target"
git check-ignore --quiet "$target" || \
git check-ignore --quiet "$target" ||
echo $'# Muggle symlink\n'"$target" >> \
.gitignore
.gitignore

cd "$original_dir" || exit

0 comments on commit 156ec79

Please sign in to comment.