summaryrefslogtreecommitdiff
path: root/user/command-not-found/explicit-apk-path.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-13 04:43:42 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-13 04:43:42 +0000
commit77a04e26a835db3ab05f2fa2c9e9b25b255c2f96 (patch)
tree0c1551e259fa5dd5ba758ff562cc590792fe9e22 /user/command-not-found/explicit-apk-path.patch
parent4c868930b9c8af6ff6165b02a0c8cd5423139456 (diff)
downloadpackages-77a04e26a835db3ab05f2fa2c9e9b25b255c2f96.tar.gz
packages-77a04e26a835db3ab05f2fa2c9e9b25b255c2f96.tar.bz2
packages-77a04e26a835db3ab05f2fa2c9e9b25b255c2f96.tar.xz
packages-77a04e26a835db3ab05f2fa2c9e9b25b255c2f96.zip
user/command-not-found: finally add this
Diffstat (limited to 'user/command-not-found/explicit-apk-path.patch')
-rw-r--r--user/command-not-found/explicit-apk-path.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/command-not-found/explicit-apk-path.patch b/user/command-not-found/explicit-apk-path.patch
new file mode 100644
index 000000000..b99466b75
--- /dev/null
+++ b/user/command-not-found/explicit-apk-path.patch
@@ -0,0 +1,11 @@
+--- command-not-found/command-not-found.sh.old 2017-11-30 04:52:39.000000000 +0000
++++ command-not-found/command-not-found.sh 2018-11-13 04:38:42.000000000 +0000
+@@ -21,7 +21,7 @@
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ # SOFTWARE.
+
+-results=$(apk search -xv "cmd:$1" 2>/dev/null)
++results=$(/sbin/apk search -xv "cmd:$1" 2>/dev/null)
+
+ if [ "$results" ]; then
+ printf "The program '%s' may be found in these packages:\n" "$1" >&2