-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add prototype dead method script #4
base: master
Are you sure you want to change the base?
Conversation
git checkout $0 | ||
bin/update | ||
fi | ||
ruby /Users/zita/Desktop/all.rb > "$ALLOWEDMETHODS" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/Users/zita/Desktop/
🙀
dirname "$0"
should work :) ($0
is the current script)
bin/update | ||
fi | ||
ruby /Users/zita/Desktop/all.rb > "$ALLOWEDMETHODS" | ||
sed -i "" '/^\*/ d' "$ALLOWEDMETHODS" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to me, this always fails with
sed: can't read /^\*/ d: No such file or directory
I must be doing something wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mac vs Linux:
in macs, -i takes a required parameter (which extension to add to the backup file)
on linux, -i takes an optional parameter, and space means it's not there (so the ""
becomes the regex, and the next param a filename)
=> sed -i" " ...
should work on both
TODO: