Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
5095b5ba
Commit
5095b5ba
authored
Jun 05, 2016
by
Derek Willian Stavis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
destroy: fix glob behavior on fish 2.3.0 (#327)
parent
0ca26d01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
pkg/omf/functions/core/omf.destroy.fish
pkg/omf/functions/core/omf.destroy.fish
+5
-2
No files found.
pkg/omf/functions/core/omf.destroy.fish
View file @
5095b5ba
...
...
@@ -2,7 +2,8 @@ function __omf.destroy.restore_backup -a file_path
set -l path (dirname $file_path)
set -l file (basename $file_path)
set -l name (echo $file | cut -d. -f1)
set -l backup_file_path (echo $path/$name.*.copy | tr ' ' '\n' | sort -r | head -1)
set -l backup_file_list $path/$name.*.copy
set -l backup_file_path (echo $backup_file_list | tr ' ' '\n' | sort -r | head -1)
if test -e "$backup_file_path"
mv "$backup_file_path" "$path/$file" ^/dev/null
...
...
@@ -14,7 +15,9 @@ end
function omf.destroy -d "Remove Oh My Fish"
echo (omf::dim)"Removing Oh My Fish..."(omf::off)
for pkg in (basename -a $OMF_PATH/pkg/*)
set -l installed_package_path $OMF_PATH/pkg/*
for pkg in (basename -a $installed_package_path)
emit uninstall_$pkg
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment