Skip to content

Support patterns containing spaces #22

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sack
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ renameprofile() {
}

setflags() {
sack__new_flags=$@
sack__new_flags="$@"
# Read the current profile directly from the config file to avoid sync issues
sack__current_profile_raw=$(cat $sack__config_path | grep -A 4 "# sack__beacon_tag_current_profile BEGIN")

Expand Down Expand Up @@ -348,7 +348,7 @@ setflags() {
}

setdirectory() {
sack__new_directories=$@
sack__new_directories="$@"

# Validate the list of all directories passed in
for sack__new_directory in $sack__new_directories
Expand Down Expand Up @@ -524,13 +524,13 @@ elif [[ "$sack__option" == "-rp" || "$sack__option" == "--renameprofile" ]]; the
# Set new preset flags for current profile
elif [[ "$sack__option" == "-sf" || "$sack__option" == "--setflags" ]]; then
shift
setflags $@
setflags "$@"
echo ""
exit 0
# Set new preset search directory for current profile
elif [[ "$sack__option" == "-sd" || "$sack__option" == "--setdirectory" ]]; then
shift
setdirectory $@
setdirectory "$@"
echo ""
exit 0
# Add a new profile
Expand Down