aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xqcd2
1 files changed, 2 insertions, 0 deletions
diff --git a/qcd b/qcd
index 0afce74..c4508e5 100755
--- a/qcd
+++ b/qcd
@@ -52,6 +52,8 @@ function change_shortcut () {
if shortcut_exists $shortcut; then
path=$(absolute_path "$path")
+
+ # The `//\//\/` escapes slashes in the path so that `sed` doesn't complain
sed -i.bak -E "s/^${shortcut} .+$/${shortcut} ${path//\//\/}/" $QCD_DATABASE_FILE
fi
}