Created
May 14, 2021 01:32
-
-
Save leoheck/40ae0e98ddca5bb102c2dffbaba3cb5b to your computer and use it in GitHub Desktop.
Update Ferdi Recipies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/.config/Ferdi/recipes | |
rm -rf ~/.ferdi_recipes | |
git clone https://github.com/getferdi/recipes.git ~/.ferdi_recipes | |
dirs=$(find . -mindepth 1 -maxdepth 1 -type d \( ! -name recipes \) \( ! -name temp \) \( ! -name '.*' \)) | |
mkdir -p ~/.ferdi_old_recipes | |
IFS=$'\n' | |
echo "$dirs" | |
for i in ${dirs}; do | |
mv -f $i ~/.ferdi_old_recipes | |
mv -f ~/.ferdi_recipes/recipes/$i $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment