You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix Comparison Operators and Command Substitution in makestudy Script. #127
The makestudy Bash script has several issues related to comparison operators and command substitution that can cause errors or compatibility problems. Below are the identified issues and suggested fixes:
Equality Operator (== vs =) for Numerical Comparison
osascript Check Exit Code Handling ($? Comparison) Fix: Use -eq for numerical comparisons.
Directory Existence Check in makestudy Script issue: The script uses -e to check for directory existence, which detects both files and directories. This can cause conflicts if a file with the same name as the study directory exists, even though it should not prevent study creation. Fix: Use -d to specifically check for directories
Activity
saksham-gera commentedon Feb 15, 2025
@pradeeban these are small issues, just let me know if i should fix these in my next PR or not