mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 12:14:19 +00:00
fix(ccs): resolve default profile shift error when no args provided
- add conditional check before shift command - prevent failure when calling 'ccs' without arguments - named profiles (ccs son, ccs glm) still work correctly
This commit is contained in:
1 parent
08d8c1f21c
commit
84f4548dcb
1 file changed
+4
-2
@@ -65,8 +65,10 @@ if [[ ! -f "$SETTINGS_PATH" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Shift profile arg, pass rest to claude
|
||||
shift
|
||||
# Shift profile arg if it was provided, pass rest to claude
|
||||
if [[ $# -gt 0 ]]; then
|
||||
shift
|
||||
fi
|
||||
|
||||
# Execute claude with settings
|
||||
exec claude --settings "$SETTINGS_PATH" "$@"
|
||||
Reference in new issue
Block a user