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
c99c7afa
Commit
c99c7afa
authored
May 16, 2017
by
Stephen M. Coakley
Committed by
GitHub
May 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #512 from oh-my-fish/fix/installer-ask-before-restore
Be more careful about restoring backups (fix #509)
parents
bc8f3142
5eb63f5d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
README.md
README.md
+1
-1
bin/install
bin/install
+7
-4
bin/install.sha256
bin/install.sha256
+1
-1
No files found.
README.md
View file @
c99c7afa
...
@@ -34,7 +34,7 @@ fish install --path=~/.local/share/omf --config=~/.config/omf
...
@@ -34,7 +34,7 @@ fish install --path=~/.local/share/omf --config=~/.config/omf
You can verify the integrity of the downloaded installer by verifying the script against
[
this checksum
](
bin/install.sha256
)
:
You can verify the integrity of the downloaded installer by verifying the script against
[
this checksum
](
bin/install.sha256
)
:
```
```
f2e24da717a9399ebb6a2e78f16627b99b6a0c31aba9123542472de94d9d6da6
install
92ca680df48640e744b361d376194c5f5f8d6b4f1ac775d22417a0d8a8108767
install
```
```
You can also install Oh My Fish with Git or with an offline source tarball downloaded from the
[
releases page
][
releases
]
:
You can also install Oh My Fish with Git or with an offline source tarball downloaded from the
[
releases page
][
releases
]
:
...
...
bin/install
View file @
c99c7afa
...
@@ -373,7 +373,6 @@ function uninstall_omf
...
@@ -373,7 +373,6 @@ function uninstall_omf
end
end
# Restore backed-up files
# Restore backed-up files
restore_backup_file "$FISH_CONFIG/config.fish"
restore_backup_file "$FISH_CONFIG/functions/fish_prompt.fish"
restore_backup_file "$FISH_CONFIG/functions/fish_prompt.fish"
say "Uninstall complete"
say "Uninstall complete"
...
@@ -411,10 +410,14 @@ function restore_backup_file -a file_path
...
@@ -411,10 +410,14 @@ function restore_backup_file -a file_path
set -l backup_file_path (echo $backup_file_list | command tr ' ' '\n' | command sort -r | command head -1)
set -l backup_file_path (echo $backup_file_list | command tr ' ' '\n' | command sort -r | command head -1)
if test -e "$backup_file_path"
if test -e "$backup_file_path"
say "Found a backup of $file at $backup_file_path"
if confirm "Would you like to restore it (overwrite existing)?"
say "Restoring backup file to $path/$file"
say "Restoring backup file to $path/$file"
command mv "$backup_file_path" "$path/$file" ^/dev/null
command mv "$backup_file_path" "$path/$file" ^/dev/null
or abort "Could not restore backup $backup_file_path"
or abort "Could not restore backup $backup_file_path"
end
end
end
end
end
...
...
bin/install.sha256
View file @
c99c7afa
f2e24da717a9399ebb6a2e78f16627b99b6a0c31aba9123542472de94d9d6da6
install
92ca680df48640e744b361d376194c5f5f8d6b4f1ac775d22417a0d8a8108767
install
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