-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
data/meld_compare.py usr/share/nautilus-python/extensions/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
#!/bin/sh | ||
|
||
SCRIPT_BASENAME="meld_compare.py" | ||
|
||
# Script paths | ||
TARGET_SCRIPT="/usr/share/nautilus-python/extensions/${SCIRPT_BASENAME}" | ||
NEW_SCRIPT="${TARGET_SCRIPT}.new" | ||
BACKUP_SCRIPT="${TARGET_SCRIPT}.backup" | ||
|
||
# Check if the target script already exists (from a previous installation) | ||
if [ -f "$TARGET_SCRIPT" ]; then | ||
echo "Updating the ${SCIRPT_BASENAME} script." | ||
mv "$TARGET_SCRIPT" "${BACKUP_SCRIPT}" | ||
fi | ||
|
||
# Rename the new script to the target script | ||
mv "$NEW_SCRIPT" "$TARGET_SCRIPT" | ||
|
||
# Inform the user to restart Nautilus | ||
echo "Please restart Nautilus to apply the changes. You can do this by running 'nautilus -q' in your terminal." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
SCRIPT_BASENAME="meld_compare.py" | ||
|
||
# Script paths | ||
TARGET_SCRIPT="/usr/share/nautilus-python/extensions/${SCRIPT_BASENAME}" | ||
BACKUP_SCRIPT="${TARGET_SCRIPT}.backup" | ||
|
||
# Check if the target script already exists (from a previous installation) | ||
if [ -f "$TARGET_SCRIPT" ]; then | ||
echo "Updating the ${SCIRPT_BASENAME} script." | ||
mv "$TARGET_SCRIPT" "${BACKUP_SCRIPT}" | ||
fi | ||
|