Ticket #1989: mc.menu

File mc.menu, 1.9 KB (added by pavlinux, 14 years ago)

patch

Line 
1diff --git a/misc/mc.menu b/misc/mc.menu
2index cf35412..9205d17 100644
3--- a/misc/mc.menu
4+++ b/misc/mc.menu
5@@ -28,8 +28,8 @@ shell_patterns=0
6 
7 = t d
8 3       Compress the current subdirectory (tar.gz)
9-       Pwd=`basename %d /`
10+       Pwd=`basename "$(pwd)"`
11        echo -n "Name of the compressed file (without extension) [$Pwd]: "
12        read tar
13         if [ "$tar"x = x ]; then tar="$Pwd"; fi
14        cd .. && \
15@@ -37,7 +37,7 @@ shell_patterns=0
16        echo "../$tar.tar.gz created."
17 
18 4       Compress the current subdirectory (tar.bz2)
19-       Pwd=`basename %d /`
20+       Pwd=`basename "$(pwd)"`
21        echo -n "Name of the compressed file (without extension) [$Pwd]: "
22        read tar
23         if [ "$tar"x = x ]; then tar="$Pwd"; fi
24@@ -46,7 +46,7 @@ shell_patterns=0
25        echo "../$tar.tar.bz2 created."
26 
27 5       Compress the current subdirectory (tar.p7)
28-       Pwd=`basename %d /`
29+       Pwd=`basename "$(pwd)"`
30        echo -n "Name of the compressed file (without extension) [$Pwd]: "
31        read tar
32         if [ "$tar"x = x ]; then tar="$Pwd"; fi
33@@ -55,7 +55,7 @@ shell_patterns=0
34        echo "../$tar.tar.7z created."
35 
36 6       Compress the current subdirectory (tar.lzma)
37-       Pwd=`basename %d /`
38+       Pwd=`basename "$(pwd)"`
39        echo -n "Name of the compressed file (without extension) [$Pwd]: "
40        read tar
41         if [ "$tar"x = x ]; then tar="$Pwd"; fi
42@@ -64,7 +64,7 @@ shell_patterns=0
43        echo "../$tar.tar.lzma created."
44 
45 7       Compress the current subdirectory (tar.lz)
46-       Pwd=`basename %d /`
47+       Pwd=`basename "$(pwd)"`
48        echo -n "Name of the compressed file (without extension) [$Pwd]: "
49        read tar
50         if [ "$tar"x = x ]; then tar="$Pwd"; fi
51@@ -73,7 +73,7 @@ shell_patterns=0
52        echo "../$tar.tar.lz created."
53 
54 8       Compress the current subdirectory (tar.xz)
55-       Pwd=`basename %d /`
56+       Pwd=`basename "$(pwd)"`
57        echo -n "Name of the compressed file (without extension) [$Pwd]: "
58        read tar
59         if [ "$tar"x = x ]; then tar="$Pwd"; fi