Skip to content

Instantly share code, notes, and snippets.

@leoheck
Created May 14, 2021 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leoheck/40ae0e98ddca5bb102c2dffbaba3cb5b to your computer and use it in GitHub Desktop.
Save leoheck/40ae0e98ddca5bb102c2dffbaba3cb5b to your computer and use it in GitHub Desktop.
Update Ferdi Recipies
#!/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