fix shell source line & trusted pkgs parsing

This commit is contained in:
Sahilb315
2025-12-18 00:01:06 +05:30
parent fcc1b628c2
commit adec9b67ca
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -11,5 +11,5 @@ type Shell interface {
var commentForRemovingShellSource = "# remove aliases by running `pmg setup remove` or deleting the line"
func defaultShellSource(rcPath string) string {
return fmt.Sprintf("%s \n[ -f %s ] && source %s # PMG source aliases\n", commentForRemovingShellSource, rcPath, rcPath)
return fmt.Sprintf("%s \n[ -f '%s' ] && source '%s' # PMG source aliases\n", commentForRemovingShellSource, rcPath, rcPath)
}