Remove leading path element when extracting tarball

Ref.: #787
parent 8ad49c58
......@@ -227,7 +227,7 @@ function install_offline
mkdir -p "$OMF_PATH"
command tar -xf "$OFFLINE_PATH" -C "$OMF_PATH"
command tar -xf "$OFFLINE_PATH" -C "$OMF_PATH" --strip-components=1
or abort "Could not extract tar file $OFFLINE_PATH"
return
......
c15695106a9f2411863cedf1c68c85cb1c3433e81266abf4a6d8c6ad4a65b521 install
c55853fcc09956fbea8f006a5b86705c71b879348a9240d8f014d0c81233ccf2 install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment