Skip to content

Instantly share code, notes, and snippets.

@timonweb
Last active June 18, 2020 12:47
Show Gist options
  • Select an option

  • Save timonweb/b70467935c6f666cacab67ea4bdea61b to your computer and use it in GitHub Desktop.

Select an option

Save timonweb/b70467935c6f666cacab67ea4bdea61b to your computer and use it in GitHub Desktop.
Tasks launcher
#!/bin/sh
#
# One line installer:
tasks_path=0
while [[ "`pwd`" != '/' ]]; do
tasks_path=$(find $(pwd) -type f -name "tasks" -print | head -n 1)
if [[ -n $tasks_path ]]; then
echo "Running 'tasks $@' command:"
sh $tasks_path $@
break
else
cd ..
fi
done
if [[ tasks_path == 0 ]]; then
echo 'Cant find tasks'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment